diff --git a/plotjuggler_app/mainwindow.cpp b/plotjuggler_app/mainwindow.cpp index b6b7021b5..1a81975f2 100644 --- a/plotjuggler_app/mainwindow.cpp +++ b/plotjuggler_app/mainwindow.cpp @@ -3244,7 +3244,7 @@ void MainWindow::on_actionPreferences_triggered() QString theme = settings.value("Preferences::theme").toString(); - if (theme != prev_style) + if (!theme.isEmpty() && theme != prev_style) { loadStyleSheet(tr(":/resources/stylesheet_%1.qss").arg(theme)); }