summaryrefslogtreecommitdiff
path: root/src/application.cpp
diff options
context:
space:
mode:
authorAndrea Diamantini <adjam7@gmail.com>2009-09-28 16:43:17 +0200
committerAndrea Diamantini <adjam7@gmail.com>2009-09-28 16:43:17 +0200
commit6d5470f0383f3c8a36b8d1aa57bcafb88a743a10 (patch)
tree1064ea713e6168157c87c0c330e21c615293c2fc /src/application.cpp
parentKrazy check issues fixes.. (diff)
downloadrekonq-6d5470f0383f3c8a36b8d1aa57bcafb88a743a10.tar.xz
Fixing crash on opening tabs after closing other window(s).
It was a stupid omission by me, cleverly discovered and fixed by Johannes Zellner!! Again, thank you very much!
Diffstat (limited to 'src/application.cpp')
-rw-r--r--src/application.cpp6
1 files changed, 6 insertions, 0 deletions
diff --git a/src/application.cpp b/src/application.cpp
index 683a405f..9bbf7792 100644
--- a/src/application.cpp
+++ b/src/application.cpp
@@ -406,6 +406,12 @@ MainWindow *Application::newMainWindow()
}
+void Application::removeMainWindow(MainWindow *window)
+{
+ m_mainWindows.removeAt(m_mainWindows.indexOf(window, 0));
+}
+
+
MainWindowList Application::mainWindowList()
{
return m_mainWindows;