Skip to content

Commit

Permalink
Browse files Browse the repository at this point in the history
Fix #6843
  • Loading branch information
NathanW2 committed Dec 10, 2012
1 parent 9e829cb commit 289a207
Showing 1 changed file with 4 additions and 2 deletions.
6 changes: 4 additions & 2 deletions src/app/qgsattributedialog.cpp
Expand Up @@ -212,9 +212,11 @@ QgsAttributeDialog::QgsAttributeDialog( QgsVectorLayer *vl, QgsFeature *thepFeat
}

// Set focus to first widget in list, to help entering data without moving the mouse.
if ( mProxyWidgets.size() > 0 )
if ( mypInnerLayout->rowCount() > 0 )
{
( *mProxyWidgets.begin() )->setFocus( Qt::OtherFocusReason );
QWidget* widget = mypInnerLayout->itemAtPosition( 0, 1 )->widget();
if ( widget )
widget->setFocus( Qt::OtherFocusReason );
}
}
else
Expand Down

0 comments on commit 289a207

Please sign in to comment.