]> cloud.milkyroute.net Git - dolphin.git/blobdiff - src/main.cpp
Merge remote-tracking branch 'origin/KDE/4.9'
[dolphin.git] / src / main.cpp
index 2a6538e35751f9c07ceba53e8b662a32f97f72df..e46c53a91078d43b5afa08cfedb69f83d93df4f5 100644 (file)
@@ -82,11 +82,13 @@ KDE_EXPORT int kdemain(int argc, char **argv)
     options.add("+[Url]", ki18nc("@info:shell", "Document to open"));
     KCmdLineArgs::addCmdLineOptions(options);
 
-    DolphinApplication app;
-    if (app.isSessionRestored()) {
-        app.restoreSession();
+    {
+        DolphinApplication app;
+        if (app.isSessionRestored()) {
+            app.restoreSession();
+        }
+        app.exec(); // krazy:exclude=crashy
     }
-    app.exec(); // krazy:exclude=crashy
 
     return 0;
 }