Don't query available widget styles on each startup

parent 5de2633c
......@@ -180,14 +180,17 @@ void MainWindow::init(const QString &MltPath, const QUrl &Url, const QString &cl
} else if (availableStyles.contains(QStringLiteral("fusion"), Qt::CaseInsensitive)) {
KdenliveSettings::setWidgetstyle(QStringLiteral("Fusion"));
}
} else {
KdenliveSettings::setWidgetstyle(QStringLiteral("Default"));
}
}
// Add default style action
QAction *defaultStyle = new QAction(i18n("Default"), stylesGroup);
defaultStyle->setData(QStringLiteral("Default"));
defaultStyle->setCheckable(true);
stylesAction->addAction(defaultStyle);
if (KdenliveSettings::widgetstyle().isEmpty()) {
if (KdenliveSettings::widgetstyle() == QLatin1String("Default") || KdenliveSettings::widgetstyle().isEmpty()) {
defaultStyle->setChecked(true);
}
......
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