diff --git a/YACReaderLibrary/library_window.cpp b/YACReaderLibrary/library_window.cpp index fc05152f..33e49110 100644 --- a/YACReaderLibrary/library_window.cpp +++ b/YACReaderLibrary/library_window.cpp @@ -1221,6 +1221,8 @@ void LibraryWindow::deleteCurrentLibrary() comicView->setModel(NULL); foldersView->setModel(NULL); comicFlow->clear(); + disableAllActions(); + showNoLibrariesWidget(); } libraries.save(); } @@ -1241,6 +1243,8 @@ void LibraryWindow::removeLibrary() comicView->setModel(NULL); foldersView->setModel(NULL); comicFlow->clear(); + disableAllActions(); + showNoLibrariesWidget(); } libraries.save(); } @@ -1249,11 +1253,6 @@ void LibraryWindow::removeLibrary() deleteCurrentLibrary(); } - if(libraries.isEmpty()) - { - disableAllActions(); - showNoLibrariesWidget(); - } } void LibraryWindow::renameLibrary()