mirror of
https://github.com/YACReader/yacreader
synced 2025-06-04 01:28:55 -04:00
fixed actions' status after partial update
This commit is contained in:
parent
6a057dffd0
commit
2ad50ce05b
@ -1374,6 +1374,8 @@ void LibraryWindow::reloadAfterCopyMove()
|
||||
{
|
||||
if(getCurrentFolderIndex() == copyMoveIndexDestination)
|
||||
reloadCovers();
|
||||
|
||||
enableNeededActions();
|
||||
}
|
||||
|
||||
QModelIndex LibraryWindow::getCurrentFolderIndex()
|
||||
@ -1384,6 +1386,18 @@ QModelIndex LibraryWindow::getCurrentFolderIndex()
|
||||
return QModelIndex();
|
||||
}
|
||||
|
||||
void LibraryWindow::enableNeededActions()
|
||||
{
|
||||
if(foldersModel->rowCount(QModelIndex())>0)
|
||||
disableFoldersActions(false);
|
||||
|
||||
if(comicsModel->rowCount()>0)
|
||||
disableComicsActions(false);
|
||||
|
||||
disableLibrariesActions(false);
|
||||
|
||||
}
|
||||
|
||||
void LibraryWindow::selectSubfolder(const QModelIndex &mi, int child)
|
||||
{
|
||||
QModelIndex dest = foldersModel->index(child,0,mi);
|
||||
|
@ -332,6 +332,7 @@ public slots:
|
||||
QProgressDialog * newProgressDialog(const QString & label, int maxValue);
|
||||
void reloadAfterCopyMove();
|
||||
QModelIndex getCurrentFolderIndex();
|
||||
void enableNeededActions();
|
||||
};
|
||||
|
||||
#endif
|
||||
|
Loading…
x
Reference in New Issue
Block a user