mirror of
https://github.com/YACReader/yacreader
synced 2025-06-04 01:28:55 -04:00
fix for preventing the creation of folders on 'Add new folder' dialog cancelation
This commit is contained in:
parent
3baba9e37e
commit
1def3ee438
@ -1478,8 +1478,7 @@ void LibraryWindow::addFolderToCurrentIndex()
|
||||
tr("Folder name:"), QLineEdit::Normal,
|
||||
"", &ok);
|
||||
if (ok && !newFolderName.isEmpty())
|
||||
QLOG_INFO() << newFolderName;
|
||||
|
||||
{
|
||||
QString parentPath = QDir::cleanPath(currentPath()+foldersModel->getFolderPath(currentIndex));
|
||||
QDir parentDir(parentPath);
|
||||
QDir newFolder(parentPath+"/"+newFolderName);
|
||||
@ -1488,6 +1487,7 @@ void LibraryWindow::addFolderToCurrentIndex()
|
||||
foldersView->setCurrentIndex(foldersModel->addFolderAtParent(newFolderName,currentIndex));
|
||||
reloadCovers();
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
void LibraryWindow::deleteSelectedFolder()
|
||||
|
Loading…
x
Reference in New Issue
Block a user