Merge pull request #216 from vedgy/update-toolbar-title-on-history-navigation

Library: update toolbar title on history navigation
This commit is contained in:
Luis Ángel San Martín 2021-03-14 16:28:33 +01:00 committed by GitHub
commit 58a74a0c03
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -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;
}
}