diff options
| author | Antonio Rojas <[email protected]> | 2020-07-19 08:02:02 -0600 |
|---|---|---|
| committer | Nate Graham <[email protected]> | 2020-07-19 08:03:56 -0600 |
| commit | ce981c3e4af725646afe6e1916c508233188091e (patch) | |
| tree | 70444ef610c8215d645a99aba2ef8257d1c0ca47 /src/main.cpp | |
| parent | 00e4571e3cf1a7ed838e931f4121b9dfe0163aab (diff) | |
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
Diffstat (limited to 'src/main.cpp')
| -rw-r--r-- | src/main.cpp | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/src/main.cpp b/src/main.cpp index 802e64d25..f0336f628 100644 --- a/src/main.cpp +++ b/src/main.cpp @@ -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; } |
