diff options
author | Andreas Hartmetz <ahartmetz@gmail.com> | 2010-11-29 21:51:40 +0100 |
---|---|---|
committer | Andreas Hartmetz <ahartmetz@gmail.com> | 2010-11-29 21:51:40 +0100 |
commit | 6ba2a9955331a4e542ad381af5d904b09fc7f36a (patch) | |
tree | 2c0b128aa3582ea0f85c5f27f755dc1cbaf40c3a /src | |
parent | SVN_SILENT made messages (.desktop file) (diff) | |
download | rekonq-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.cpp | 2 |
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()) { |