mirror of
https://github.com/YACReader/yacreader
synced 2025-05-28 03:10:27 -04:00
fixed regression in main tool bar title (not being shown)
This commit is contained in:
parent
0236bcdbbc
commit
c4022cf9bd
@ -1732,6 +1732,16 @@ void LibraryWindow::onAddComicsToLabel()
|
||||
comicsModel->addComicsToLabel(comics,labelId);
|
||||
}
|
||||
|
||||
void LibraryWindow::setToolbarTitle(const QModelIndex &modelIndex)
|
||||
{
|
||||
#ifndef Q_OS_MAC
|
||||
if(!modelIndex.isValid())
|
||||
libraryToolBar->setCurrentFolderName(selectedLibrary->currentText());
|
||||
else
|
||||
libraryToolBar->setCurrentFolderName(modelIndex.data().toString());
|
||||
#endif
|
||||
}
|
||||
|
||||
void LibraryWindow::selectSubfolder(const QModelIndex &mi, int child)
|
||||
{
|
||||
QModelIndex dest = foldersModel->index(child,0,mi);
|
||||
|
@ -394,6 +394,7 @@ public slots:
|
||||
void showComicsItemContextMenu(const QPoint & point);
|
||||
void setupAddToSubmenu(QMenu & menu);
|
||||
void onAddComicsToLabel();
|
||||
void setToolbarTitle(const QModelIndex & modelIndex);
|
||||
|
||||
};
|
||||
|
||||
|
@ -43,6 +43,8 @@ void YACReaderNavigationController::selectedFolder(const QModelIndex &mi)
|
||||
}
|
||||
|
||||
loadFolderInfo(modelIndex);
|
||||
|
||||
libraryWindow->setToolbarTitle(modelIndex);
|
||||
}
|
||||
|
||||
void YACReaderNavigationController::reselectCurrentFolder()
|
||||
@ -202,6 +204,8 @@ void YACReaderNavigationController::selectedList(const QModelIndex &mi)
|
||||
}
|
||||
|
||||
loadListInfo(modelIndex);
|
||||
|
||||
libraryWindow->setToolbarTitle(modelIndex);
|
||||
}
|
||||
|
||||
void YACReaderNavigationController::reselectCurrentList()
|
||||
|
Loading…
Reference in New Issue
Block a user