mirror of
https://github.com/YACReader/yacreader
synced 2025-07-27 09:24:57 -04:00
fixed empty libraries status
This commit is contained in:
@ -1221,6 +1221,8 @@ void LibraryWindow::deleteCurrentLibrary()
|
|||||||
comicView->setModel(NULL);
|
comicView->setModel(NULL);
|
||||||
foldersView->setModel(NULL);
|
foldersView->setModel(NULL);
|
||||||
comicFlow->clear();
|
comicFlow->clear();
|
||||||
|
disableAllActions();
|
||||||
|
showNoLibrariesWidget();
|
||||||
}
|
}
|
||||||
libraries.save();
|
libraries.save();
|
||||||
}
|
}
|
||||||
@ -1241,6 +1243,8 @@ void LibraryWindow::removeLibrary()
|
|||||||
comicView->setModel(NULL);
|
comicView->setModel(NULL);
|
||||||
foldersView->setModel(NULL);
|
foldersView->setModel(NULL);
|
||||||
comicFlow->clear();
|
comicFlow->clear();
|
||||||
|
disableAllActions();
|
||||||
|
showNoLibrariesWidget();
|
||||||
}
|
}
|
||||||
libraries.save();
|
libraries.save();
|
||||||
}
|
}
|
||||||
@ -1249,11 +1253,6 @@ void LibraryWindow::removeLibrary()
|
|||||||
deleteCurrentLibrary();
|
deleteCurrentLibrary();
|
||||||
}
|
}
|
||||||
|
|
||||||
if(libraries.isEmpty())
|
|
||||||
{
|
|
||||||
disableAllActions();
|
|
||||||
showNoLibrariesWidget();
|
|
||||||
}
|
|
||||||
}
|
}
|
||||||
|
|
||||||
void LibraryWindow::renameLibrary()
|
void LibraryWindow::renameLibrary()
|
||||||
|
Reference in New Issue
Block a user