]> cloud.milkyroute.net Git - dolphin.git/blobdiff - src/main.cpp
Add a unit test for a recently fixed crash
[dolphin.git] / src / main.cpp
index b1ac041ffeae0c1453f07c3d895b3e26f13885b3..9577259b519e6144d0b99584f9200eb71bf7e741 100644 (file)
@@ -33,7 +33,7 @@ KDE_EXPORT int kdemain(int argc, char **argv)
 {
     KAboutData about("dolphin", 0,
                      ki18nc("@title", "Dolphin"),
-                     "2.1.80",
+                     "2.1.98",
                      ki18nc("@title", "File Manager"),
                      KAboutData::License_GPL,
                      ki18nc("@info:credit", "(C) 2006-2012 Peter Penz and Frank Reininghaus"));
@@ -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;
 }