Skip to content

Commit cf8d97c

Browse files
author
jef
committedAug 19, 2009
fix #1870
git-svn-id: http://svn.osgeo.org/qgis/trunk@11441 c8812cc2-4d05-0410-92ff-de0c093fc19c
1 parent 853e661 commit cf8d97c

File tree

1 file changed

+3
-2
lines changed

1 file changed

+3
-2
lines changed
 

‎src/plugins/grass/qgsgrassattributes.cpp

Lines changed: 3 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -226,9 +226,10 @@ void QgsGrassAttributes::updateAttributes( )
226226

227227
if ( tb->rowCount() > 2 )
228228
{
229-
230229
// Stop editing
231-
QApplication::focusWidget()->clearFocus();
230+
QWidget *w = QApplication::focusWidget();
231+
if ( w )
232+
w->clearFocus();
232233

233234
QString sql;
234235

0 commit comments

Comments
 (0)
Please sign in to comment.