From: Stefan Monov Date: Mon, 5 Nov 2007 16:49:24 +0000 (+0000) Subject: use an icon even when launched manually. okular uses the same X-Git-Url: https://cloud.milkyroute.net/gitweb/dolphin.git/commitdiff_plain/96f134eecc80a9a655d4b85fc2bd078775bb1c34?ds=sidebyside use an icon even when launched manually. okular uses the same workaround. svn path=/trunk/KDE/kdebase/apps/; revision=733138 --- 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 #include +#include #include #include #include @@ -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()*/) {