Skip to content
Permalink
Browse files
Fix #6843
  • Loading branch information
NathanW2 committed Dec 10, 2012
1 parent 9e829cb commit 289a20727cbce4946b59287a6146bdc4b38aedcd
Showing with 4 additions and 2 deletions.
  1. +4 −2 src/app/qgsattributedialog.cpp
@@ -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

0 comments on commit 289a207

Please sign in to comment.