summaryrefslogtreecommitdiff
path: root/src
diff options
context:
space:
mode:
Diffstat (limited to 'src')
-rw-r--r--src/mainwindow.cpp6
1 files changed, 5 insertions, 1 deletions
diff --git a/src/mainwindow.cpp b/src/mainwindow.cpp
index 7954bb63..528ec217 100644
--- a/src/mainwindow.cpp
+++ b/src/mainwindow.cpp
@@ -614,7 +614,11 @@ void MainWindow::finalizeGUI(KXMLGUIClient* client)
KXmlGuiWindow::finalizeGUI(client);
//update rekonqMenu when GUI has changed
KMenu *m = qobject_cast<KMenu*>(factory()->container("rekonqMenu", this));
- m_rekonqMenu->addActions(m->actions());
+ 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?";
}