summaryrefslogtreecommitdiff
path: root/src
diff options
context:
space:
mode:
authorAndreas Hartmetz <ahartmetz@gmail.com>2010-11-29 21:51:40 +0100
committerAndreas Hartmetz <ahartmetz@gmail.com>2010-11-29 21:51:40 +0100
commit6ba2a9955331a4e542ad381af5d904b09fc7f36a (patch)
tree2c0b128aa3582ea0f85c5f27f755dc1cbaf40c3a /src
parentSVN_SILENT made messages (.desktop file) (diff)
downloadrekonq-6ba2a9955331a4e542ad381af5d904b09fc7f36a.tar.xz
My kuriikwsfilterrc contains no default search engine, so
SearchEngine::defaultEngine() returns null. Don't crash in that case.
Diffstat (limited to 'src')
-rw-r--r--src/urlbar/listitem.cpp2
1 files changed, 2 insertions, 0 deletions
diff --git a/src/urlbar/listitem.cpp b/src/urlbar/listitem.cpp
index a0462e76..f29a0e98 100644
--- a/src/urlbar/listitem.cpp
+++ b/src/urlbar/listitem.cpp
@@ -454,6 +454,8 @@ EngineBar::EngineBar(KService::Ptr selectedEngine, QWidget *parent)
m_engineGroup = new QActionGroup(this);
m_engineGroup->setExclusive(true);
+ if (SearchEngine::defaultEngine().isNull())
+ return;
m_engineGroup->addAction(newEngineAction(SearchEngine::defaultEngine(), selectedEngine));
foreach(KService::Ptr engine, SearchEngine::favorites())
{