Index: src/gui/qgssearchquerybuilder.cpp =================================================================== --- src/gui/qgssearchquerybuilder.cpp (revision 15154) +++ src/gui/qgssearchquerybuilder.cpp (working copy) @@ -234,7 +234,18 @@ } QApplication::restoreOverrideCursor(); - + //kCube Start bug #3347 2010/02/11 + /** The below code has been added to fix the bug #3347 + *The below code checks whether the search string has error. If it has it throws a message box + *displaying the type of error. + *email :contact [at] kcubeconsulting [Dot] com + */ + if ( searchTree->hasError() ) + { + QMessageBox::critical( this, tr( "Error during search" ), searchTree->errorMsg() ); + return -1; + } + //kCube End bug #3347 return count; }