summaryrefslogtreecommitdiff
path: root/src/mainwindow.cpp
diff options
context:
space:
mode:
authorAndrea Diamantini <adjam7@gmail.com>2012-07-08 09:49:43 +0200
committerAndrea Diamantini <adjam7@gmail.com>2012-07-08 10:02:56 +0200
commit79b0bac01d82f8fa5f67bf288eab1ca8433fac8b (patch)
tree321b121692db54d08db49cf965978e1770e302ac /src/mainwindow.cpp
parentUpdate screenshots. (diff)
downloadrekonq-79b0bac01d82f8fa5f67bf288eab1ca8433fac8b.tar.xz
Ensure rekonq will close when deleting last window.
BUG: 303149
Diffstat (limited to 'src/mainwindow.cpp')
-rw-r--r--src/mainwindow.cpp4
1 files changed, 4 insertions, 0 deletions
diff --git a/src/mainwindow.cpp b/src/mainwindow.cpp
index e0fdf255..a3b222b3 100644
--- a/src/mainwindow.cpp
+++ b/src/mainwindow.cpp
@@ -125,6 +125,7 @@ MainWindow::MainWindow()
{
// Setting attributes (just to be sure...)
setAttribute(Qt::WA_DeleteOnClose, true);
+ setAttribute(Qt::WA_QuitOnClose, true);
// creating a centralWidget containing panel, m_view and the hidden findbar
QWidget *centralWidget = new QWidget;
@@ -235,6 +236,7 @@ MainWindow::~MainWindow()
rApp->bookmarkManager()->removeBookmarkBar(m_bookmarksBar);
rApp->bookmarkManager()->removeBookmarkPanel(m_bookmarksPanel);
+
rApp->removeMainWindow(this);
}
@@ -657,6 +659,7 @@ void MainWindow::finalizeGUI(KXMLGUIClient* client)
<< " ====================== ";
}
+
void MainWindow::readProperties(const KConfigGroup& config)
{
Q_UNUSED(config)
@@ -664,6 +667,7 @@ void MainWindow::readProperties(const KConfigGroup& config)
Application::instance()->sessionManager()->restoreMainWindow(this);
}
+
void MainWindow::openLocation()
{
if (isFullScreen())