- fix: can't create folder in files view, if nothing is selected

This commit is contained in:
Roy Qu 2022-07-23 15:41:19 +08:00
parent eebd7336c2
commit 3d42cdf6c3
2 changed files with 2 additions and 0 deletions

View File

@ -12,6 +12,7 @@ Red Panda C++ Version 1.1.5
- fix: "Timeout for problem case" can't be rechecked, in the Settings Dialog -> executor -> problem set panel. - fix: "Timeout for problem case" can't be rechecked, in the Settings Dialog -> executor -> problem set panel.
- fix: bug in the project template - fix: bug in the project template
- change: sort local identifiers before keywords in the auto completion popup - change: sort local identifiers before keywords in the auto completion popup
- fix: can't create folder in files view, if nothing is selected
Red Panda C++ Version 1.1.4 Red Panda C++ Version 1.1.4

View File

@ -3555,6 +3555,7 @@ void MainWindow::onFilesViewCreateFolder()
ui->treeFiles->expand(index); ui->treeFiles->expand(index);
} else { } else {
dir = mFileSystemModel.rootDirectory(); dir = mFileSystemModel.rootDirectory();
parentIndex=mFileSystemModel.index(dir.absolutePath());
} }
QString folderName = tr("New Folder"); QString folderName = tr("New Folder");
int count = 0; int count = 0;