summaryrefslogtreecommitdiff
path: root/src/mainwindow.cpp
diff options
context:
space:
mode:
authorAndrea Diamantini <adjam7@gmail.com>2012-02-21 11:39:16 +0100
committerAndrea Diamantini <adjam7@gmail.com>2012-02-21 11:47:57 +0100
commitd4af6c8a5919109336d11a0c093968866d3cd35d (patch)
tree45594d4ae780a22deebf3c196d027a9a1854d3fb /src/mainwindow.cpp
parentGet sure urlbar is updated on bookmarking (diff)
downloadrekonq-d4af6c8a5919109336d11a0c093968866d3cd35d.tar.xz
Get sure mainbar is restored on restart after fullscreen close
Also take care about updating actions panels state
Diffstat (limited to 'src/mainwindow.cpp')
-rw-r--r--src/mainwindow.cpp10
1 files changed, 6 insertions, 4 deletions
diff --git a/src/mainwindow.cpp b/src/mainwindow.cpp
index 54f1b800..1d2304c4 100644
--- a/src/mainwindow.cpp
+++ b/src/mainwindow.cpp
@@ -244,15 +244,15 @@ void MainWindow::setupToolbars()
a = new KAction(i18n("Location Bar"), this);
a->setDefaultWidget(m_view->widgetBar());
actionCollection()->addAction(QL1S("url_bar"), a);
-
- KToolBar *mainBar = toolBar("mainToolBar");
-
- mainBar->show(); // this just to fix reopening rekonq after fullscreen close
}
void MainWindow::postLaunch()
{
+ // this just to fix reopening rekonq after fullscreen close
+ KToolBar *mainBar = toolBar("mainToolBar");
+ mainBar->show();
+
// Bookmarks Bar
KToolBar *XMLGUIBkBar = toolBar("bookmarkToolBar");
if (!XMLGUIBkBar)
@@ -585,6 +585,7 @@ void MainWindow::setupPanels()
actionCollection()->addAction(QL1S("show_history_panel"), a);
a->setCheckable(true);
connect(a, SIGNAL(triggered(bool)), m_historyPanel, SLOT(setVisible(bool)));
+ connect(m_historyPanel, SIGNAL(visibilityChanged(bool)), a, SLOT(setChecked(bool)));
// STEP 2
// Setup bookmarks panel
@@ -605,6 +606,7 @@ void MainWindow::setupPanels()
actionCollection()->addAction(QL1S("show_bookmarks_panel"), a);
a->setCheckable(true);
connect(a, SIGNAL(triggered(bool)), m_bookmarksPanel, SLOT(setVisible(bool)));
+ connect(m_bookmarksPanel, SIGNAL(visibilityChanged(bool)), a, SLOT(setChecked(bool)));
// STEP 3
// Setup webinspector panel