summaryrefslogtreecommitdiff
path: root/noncore/apps/dagger/searchbar.cpp
Side-by-side diff
Diffstat (limited to 'noncore/apps/dagger/searchbar.cpp') (more/less context) (ignore whitespace changes)
-rw-r--r--noncore/apps/dagger/searchbar.cpp2
1 files changed, 1 insertions, 1 deletions
diff --git a/noncore/apps/dagger/searchbar.cpp b/noncore/apps/dagger/searchbar.cpp
index b195f67..463a19f 100644
--- a/noncore/apps/dagger/searchbar.cpp
+++ b/noncore/apps/dagger/searchbar.cpp
@@ -91,7 +91,7 @@ void SearchBar::setCurrModule( TextWidget *currText )
{
m_actionFind->setEnabled( ( m_searchText->text() != "" ) && currText );
- if ( !m_currText || ( currText->getModuleName() != m_currText->getModuleName() ) )
+ if ( !m_currText || !currText || ( currText->getModuleName() != m_currText->getModuleName() ) )
{
m_actionPrev->setEnabled( false );
m_resultList->clear();