summaryrefslogtreecommitdiff
path: root/src/mainwindow.cpp
diff options
context:
space:
mode:
authorAndrea Diamantini <adjam7@gmail.com>2011-12-01 18:52:55 +0100
committerAndrea Diamantini <adjam7@gmail.com>2011-12-01 18:52:55 +0100
commit9e48d9d5449d78aab4a4e89001945fda8f571f66 (patch)
tree98afc16068eca51377521df822a14e6eb807819e /src/mainwindow.cpp
parentFaster clean startup (with just two side previews to load) (diff)
downloadrekonq-9e48d9d5449d78aab4a4e89001945fda8f571f66.tar.xz
Fix bk toolbar initialization
Diffstat (limited to 'src/mainwindow.cpp')
-rw-r--r--src/mainwindow.cpp14
1 files changed, 9 insertions, 5 deletions
diff --git a/src/mainwindow.cpp b/src/mainwindow.cpp
index 0ccb6110..92c786df 100644
--- a/src/mainwindow.cpp
+++ b/src/mainwindow.cpp
@@ -217,7 +217,7 @@ MainWindow::MainWindow()
setAcceptDrops(true);
// Bookmark ToolBar (needs to be setup after the call to setupGUI())
- initBookmarkBar();
+ QTimer::singleShot(1, this, SLOT(initBookmarkBar()));
}
@@ -259,9 +259,9 @@ void MainWindow::initBookmarkBar()
}
m_bookmarksBar = new BookmarkToolBar(XMLGUIBkBar, this);
rApp->bookmarkProvider()->registerBookmarkBar(m_bookmarksBar);
+
QAction *a = actionByName(QL1S("show_bookmarks_toolbar"));
a->setChecked(XMLGUIBkBar->isVisible());
- connect(a, SIGNAL(toggled(bool)), this, SLOT(toggleBookmarkBarVisible(bool)));
}
@@ -505,6 +505,7 @@ void MainWindow::setupActions()
a = new KAction(KIcon("bookmarks-bar"), i18n("Bookmarks Toolbar"), this);
a->setCheckable(true);
actionCollection()->addAction(QL1S("show_bookmarks_toolbar"), a);
+ connect(a, SIGNAL(toggled(bool)), this, SLOT(toggleBookmarkBarVisible(bool)));
// User Agent
a = new KAction(KIcon("preferences-web-browser-identification"), i18n("Browser Identification"), this);
@@ -614,13 +615,16 @@ void MainWindow::setupPanels()
void MainWindow::finalizeGUI(KXMLGUIClient* client)
{
KXmlGuiWindow::finalizeGUI(client);
- //update rekonqMenu when GUI has changed
+
+ // update rekonqMenu when GUI has changed
KMenu *m = qobject_cast<KMenu*>(factory()->container("rekonqMenu", this));
if (m)
m_rekonqMenu->addActions(m->actions());
else
- kDebug() << "Could not get the rekonqMenu menu. Maybe the rekonqui.rc file wasn't found. Was"
- << "rekonq installed correctly?";
+ kDebug() << " ====================== "
+ << "Could not get the rekonqMenu menu. Maybe the rekonqui.rc file wasn't found."
+ << "Was rekonq installed correctly?"
+ << " ====================== ";
}