X-Git-Url: https://cloud.milkyroute.net/gitweb/dolphin.git/blobdiff_plain/7a62507d3dea468b3f1709f1c37470eafa766303..d6488887ecf69d7f192b94de8dce34fae0b7eb76:/src/main.cpp diff --git a/src/main.cpp b/src/main.cpp index ebbc9a552..c42cc044f 100644 --- a/src/main.cpp +++ b/src/main.cpp @@ -24,6 +24,7 @@ #include #include +#include #include #include #include @@ -74,9 +75,12 @@ 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()*/) { + if (app.isSessionRestored()) { int n = 1; while (KMainWindow::canBeRestored(n)) { const QString className = KXmlGuiWindow::classNameOfToplevel(n);