From b38a71136c3637cbfe5b9a412d8e0cc880e643c2 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Luis=20=C3=81ngel=20San=20Mart=C3=ADn?= Date: Mon, 27 Jan 2014 11:27:03 +0100 Subject: [PATCH] fixed empty libraries status --- YACReaderLibrary/library_window.cpp | 9 ++++----- 1 file changed, 4 insertions(+), 5 deletions(-) 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()