summaryrefslogtreecommitdiff
path: root/src/main.cpp
diff options
context:
space:
mode:
Diffstat (limited to 'src/main.cpp')
-rw-r--r--src/main.cpp8
1 files changed, 2 insertions, 6 deletions
diff --git a/src/main.cpp b/src/main.cpp
index c5759d84..5ed5dc08 100644
--- a/src/main.cpp
+++ b/src/main.cpp
@@ -75,6 +75,8 @@ extern "C" KDE_EXPORT int kdemain(int argc, char **argv)
QApplication::setGraphicsSystem(QLatin1String("raster"));
#endif
+ KCmdLineArgs::setCwd(QDir::currentPath().toUtf8());
+
Application app;
QWebSettings::setIconDatabasePath("/tmp/iconcache");
@@ -83,11 +85,5 @@ extern "C" KDE_EXPORT int kdemain(int argc, char **argv)
QCoreApplication::setApplicationName(QLatin1String("rekonq"));
QCoreApplication::setApplicationVersion(REKONQ_VERSION);
- KCmdLineArgs::setCwd(QDir::currentPath().toUtf8());
-
-// if (app.isSessionRestored())
-// for (int i = 1; MainWindow::canBeRestored(i); i++)
-// app.newMainWindow(false)->restore(i);
-
return app.exec();
}