diff options
author | David E. Narváez <david.narvaez@computer.org> | 2012-01-12 23:11:33 -0500 |
---|---|---|
committer | David E. Narváez <david.narvaez@computer.org> | 2012-01-12 23:11:33 -0500 |
commit | 7504b595fea9924a4a397cea3dc69fa2e0fd0119 (patch) | |
tree | 4de77dab52b76e49c392987645b0214256a2b47d /src/mainwindow.cpp | |
parent | rekonq 0.8.58 (diff) | |
download | rekonq-7504b595fea9924a4a397cea3dc69fa2e0fd0119.tar.xz |
Implement (User) Session Restore
This patch implements session management. Most of the ideas are taken
from Konsole, which is also a KUniqueApplication but manages session
restoring correctly.
REVIEW: 103658
Diffstat (limited to 'src/mainwindow.cpp')
-rw-r--r-- | src/mainwindow.cpp | 6 |
1 files changed, 6 insertions, 0 deletions
diff --git a/src/mainwindow.cpp b/src/mainwindow.cpp index 98936e96..feeb0383 100644 --- a/src/mainwindow.cpp +++ b/src/mainwindow.cpp @@ -650,6 +650,12 @@ void MainWindow::finalizeGUI(KXMLGUIClient* client) << " ====================== "; } +void MainWindow::readProperties(const KConfigGroup& config) +{ + Q_UNUSED(config) + + Application::instance()->sessionManager()->restoreMainWindow(this); +} void MainWindow::openLocation() { |