Only check color theme on first run, not each time the Wizard is called

BUG:388274
parent 304ea85e
......@@ -74,8 +74,6 @@ Wizard::Wizard(bool autoClose, QWidget *parent) :
m_systemCheckIsOk(false),
m_brokenModule(false)
{
// Check color theme
ThemeManager::instance()->initDarkTheme();
setWindowTitle(i18n("Welcome to Kdenlive"));
int logoHeight = fontMetrics().height() * 2.5;
setWizardStyle(QWizard::ModernStyle);
......
......@@ -1641,6 +1641,8 @@ bool MainWindow::readOptions()
if (!initialGroup.exists() || KdenliveSettings::sdlAudioBackend().isEmpty()) {
// First run, check if user is on a KDE Desktop
firstRun = true;
// Check color theme
ThemeManager::instance()->initDarkTheme();
// this is our first run, show Wizard
QPointer<Wizard> w = new Wizard(true);
if (w->exec() == QDialog::Accepted && w->isOk()) {
......
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