From 7504b595fea9924a4a397cea3dc69fa2e0fd0119 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?David=20E=2E=20Narv=C3=A1ez?= Date: Thu, 12 Jan 2012 23:11:33 -0500 Subject: 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 --- src/mainwindow.cpp | 6 ++++++ 1 file changed, 6 insertions(+) (limited to 'src/mainwindow.cpp') 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() { -- cgit v1.2.1