- fix: can't create folder in files view, if nothing is selected
This commit is contained in:
parent
eebd7336c2
commit
3d42cdf6c3
1
NEWS.md
1
NEWS.md
|
@ -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
|
||||||
|
|
||||||
|
|
|
@ -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;
|
||||||
|
|
Loading…
Reference in New Issue