Fix "Show folders, tabs, and window state from last time" feature

We were using the DBus interface before declaring it, oops.

BUG: 422300
FIXED-IN: 20.08.0
This commit is contained in:
Antonio Rojas 2020-07-19 08:02:02 -06:00 committed by Nate Graham
parent 00e4571e3c
commit ce981c3e4a

View file

@ -178,6 +178,9 @@ extern "C" Q_DECL_EXPORT int kdemain(int argc, char **argv)
mainWindow->show();
KDBusService dolphinDBusService;
DBusInterface interface;
if (!app.isSessionRestored()) {
KConfigGui::setSessionConfig(QStringLiteral("dolphin"), QStringLiteral("dolphin"));
}
@ -200,8 +203,5 @@ extern "C" Q_DECL_EXPORT int kdemain(int argc, char **argv)
}
}
KDBusService dolphinDBusService;
DBusInterface interface;
return app.exec(); // krazy:exclude=crash;
}