Commit d9be9b43 authored by Emmanuel Promayon's avatar Emmanuel Promayon

FIXED crash when the previously saved viewer in user config does not exist any more

parent cd883be9
......@@ -423,7 +423,7 @@ void MainWindow::initSettings() {
// get central viewer
QString centralViewerName = settings.value("centralViewer", "").toString();
// if no specific name is found, just do nothing will use the one alread set in the central viewer by default
if (centralViewerName != "") {
if (centralViewerName != "" && Application::getViewer(centralViewerName) != nullptr) {
setCentralViewer(Application::getViewer(centralViewerName));
}
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment