mirror of
https://github.com/YACReader/yacreader
synced 2025-06-04 01:28:55 -04:00
fixed empty libraries status
This commit is contained in:
parent
7b2f812aa3
commit
b38a71136c
@ -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()
|
||||||
|
Loading…
x
Reference in New Issue
Block a user