patch_for_bug_3347.txt
| 1 |
Index: src/gui/qgssearchquerybuilder.cpp |
|---|---|
| 2 |
=================================================================== |
| 3 |
--- src/gui/qgssearchquerybuilder.cpp (revision 15154) |
| 4 |
+++ src/gui/qgssearchquerybuilder.cpp (working copy) |
| 5 |
@@ -234,7 +234,18 @@ |
| 6 |
} |
| 7 |
|
| 8 |
QApplication::restoreOverrideCursor(); |
| 9 |
- |
| 10 |
+ //kCube Start bug #3347 2010/02/11 |
| 11 |
+ /** The below code has been added to fix the bug #3347 |
| 12 |
+ *The below code checks whether the search string has error. If it has it throws a message box |
| 13 |
+ *displaying the type of error. |
| 14 |
+ *email :contact [at] kcubeconsulting [Dot] com |
| 15 |
+ */ |
| 16 |
+ if ( searchTree->hasError() ) |
| 17 |
+ {
|
| 18 |
+ QMessageBox::critical( this, tr( "Error during search" ), searchTree->errorMsg() ); |
| 19 |
+ return -1; |
| 20 |
+ } |
| 21 |
+ //kCube End bug #3347 |
| 22 |
return count; |
| 23 |
} |
| 24 |
|