diff options
author | Michele Calgaro <michele.calgaro@yahoo.it> | 2018-07-02 23:15:07 +0900 |
---|---|---|
committer | Michele Calgaro <michele.calgaro@yahoo.it> | 2018-07-02 23:15:07 +0900 |
commit | 828bd2ad0c9d07fcbef8cc5ef113e19882cbe3d4 (patch) | |
tree | 7e03c6ecbff7e067762dafe4864dca6a9f52da9f | |
parent | 938d5401360f60116eb3819647fa9fc4adcc1023 (diff) | |
download | tdebase-828bd2ad0c9d07fcbef8cc5ef113e19882cbe3d4.tar.gz tdebase-828bd2ad0c9d07fcbef8cc5ef113e19882cbe3d4.zip |
Kate session panel: fixed restoring of multiple Kate's main windows.
This relates to bug 2491
Signed-off-by: Michele Calgaro <michele.calgaro@yahoo.it>
-rw-r--r-- | kate/app/kateapp.cpp | 8 |
1 files changed, 2 insertions, 6 deletions
diff --git a/kate/app/kateapp.cpp b/kate/app/kateapp.cpp index 18251ee09..c92d7cebc 100644 --- a/kate/app/kateapp.cpp +++ b/kate/app/kateapp.cpp @@ -148,13 +148,9 @@ void KateApp::restoreKate() Kate::Document::setOpenErrorDialogsActivated(true); - // restore all windows ;) - for (int n=1; TDEMainWindow::canBeRestored(n); n++) - newMainWindow(sessionConfig(), TQString ("%1").arg(n)); - // no mainwindow, create one, should not happen, but make sure ;) if (mainWindows() == 0) - newMainWindow (); + newMainWindow(); // Do not notify about start there: this makes kicker crazy and kate go to a wrong desktop. // TDEStartupInfo::setNewStartupId( activeMainWindow(), startupId()); @@ -313,7 +309,7 @@ void KateApp::shutdownKate(KateMainWindow *win) while (!m_mainWindows.isEmpty()) delete m_mainWindows[0]; - quit (); + quit(); } bool KateApp::query_session_close() |