]> cloud.milkyroute.net Git - dolphin.git/blobdiff - src/main.cpp
there's no need having 2-liners inside their own method when this method is only...
[dolphin.git] / src / main.cpp
index ebbc9a55249b3c0776ce1d7d1d7be74de199bc14..395c5e1b83b6ce2291bfa4093152350463eda14a 100644 (file)
@@ -24,6 +24,7 @@
 
 #include <kaboutdata.h>
 #include <kcmdlineargs.h>
+#include <kicon.h>
 #include <klocale.h>
 #include <kmainwindow.h>
 #include <kdebug.h>
@@ -74,6 +75,9 @@ int main(int argc, char **argv)
     }
 
     DolphinApplication app;
+    // the .desktop file is not taken into account when launching manually, so
+    // set the icon precautionally:
+    QApplication::setWindowIcon(KIcon("system-file-manager"));
     KGlobal::locale()->insertCatalog("libkonq"); // needed for applications using libkonq
 
     if (false /*app.isSessionRestored()*/) {