┌   ┐
54
└   ┘

summaryrefslogtreecommitdiff
path: root/src/main.cpp
diff options
context:
space:
mode:
authorStefan Monov <[email protected]>2007-11-05 16:49:24 +0000
committerStefan Monov <[email protected]>2007-11-05 16:49:24 +0000
commit96f134eecc80a9a655d4b85fc2bd078775bb1c34 (patch)
tree0a21ba6c48d28f25a7bfbb0ad73bae03d3d3ed44 /src/main.cpp
parentf982a4de6d27a7eb37f6ed3c87021558464cd86c (diff)
use an icon even when launched manually. okular uses the same
workaround. svn path=/trunk/KDE/kdebase/apps/; revision=733138
Diffstat (limited to 'src/main.cpp')
-rw-r--r--src/main.cpp4
1 files changed, 4 insertions, 0 deletions
diff --git a/src/main.cpp b/src/main.cpp
index ebbc9a552..395c5e1b8 100644
--- a/src/main.cpp
+++ b/src/main.cpp
@@ -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()*/) {