Searching without active conference doesn't give an error message anymore (resolves...
[toast/confclerk.git] / src / gui / searchtabcontainer.cpp
index 246b4ea..fa5f22d 100644 (file)
@@ -86,6 +86,8 @@ void SearchTabContainer::searchButtonClicked()
     QString keyword = searchHeader->searchEdit->text();
 
     int confId = Conference::activeConference();
+    if (confId == -1) return;
+
     SqlEngine::searchEvent( confId, columns, keyword );
 
     QDate startDate = Conference::getById(confId).start();