Skip to content
Permalink
Browse files

apply patch for #3347 from kcube

git-svn-id: http://svn.osgeo.org/qgis/trunk@15175 c8812cc2-4d05-0410-92ff-de0c093fc19c
  • Loading branch information
jef
jef committed Feb 15, 2011
1 parent 6d77f18 commit 1a4ff7dc29dd1853aae51c2764cf9c1a0356a419
Showing with 7 additions and 1 deletion.
  1. +7 −1 src/gui/qgssearchquerybuilder.cpp
@@ -203,7 +203,7 @@ long QgsSearchQueryBuilder::countRecords( QString searchString )
return -1;

QgsSearchTreeNode* searchTree = search.tree();
if ( searchTree == NULL )
if ( !searchTree )
{
// entered empty search string
return mLayer->featureCount();
@@ -235,6 +235,12 @@ long QgsSearchQueryBuilder::countRecords( QString searchString )

QApplication::restoreOverrideCursor();

if ( searchTree->hasError() )
{
QMessageBox::critical( this, tr( "Error during search" ), searchTree->errorMsg() );
return -1;
}

return count;
}

0 comments on commit 1a4ff7d

Please sign in to comment.
You can’t perform that action at this time.