mirror of
https://github.com/YACReader/yacreader
synced 2025-05-28 03:10:27 -04:00
Merge pull request #216 from vedgy/update-toolbar-title-on-history-navigation
Library: update toolbar title on history navigation
This commit is contained in:
commit
58a74a0c03
@ -219,6 +219,7 @@ void YACReaderNavigationController::selectedIndexFromHistory(const YACReaderLibr
|
||||
}
|
||||
|
||||
loadIndexFromHistory(sourceContainer);
|
||||
libraryWindow->setToolbarTitle(sourceContainer.getSourceModelIndex());
|
||||
}
|
||||
|
||||
void YACReaderNavigationController::loadIndexFromHistory(const YACReaderLibrarySourceContainer &sourceContainer)
|
||||
@ -240,6 +241,7 @@ void YACReaderNavigationController::loadIndexFromHistory(const YACReaderLibraryS
|
||||
break;
|
||||
}
|
||||
case YACReaderLibrarySourceContainer::None:
|
||||
QLOG_ERROR() << "Cannot load a source container of type None";
|
||||
break;
|
||||
}
|
||||
}
|
||||
|
Loading…
Reference in New Issue
Block a user