Skip to content

Commit

Permalink
explicitly set widget focus in constructor
Browse files Browse the repository at this point in the history
  • Loading branch information
uclaros authored and nyalldawson committed Jan 20, 2020
1 parent bfe08c6 commit 9b4a824
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions src/app/qgsaddattrdialog.cpp
Expand Up @@ -58,6 +58,8 @@ QgsAddAttrDialog::QgsAddAttrDialog( QgsVectorLayer *vlayer, QWidget *parent, Qt:

if ( mIsShapeFile )
mNameEdit->setMaxLength( 10 );

mNameEdit->setFocus();
}

void QgsAddAttrDialog::mTypeBox_currentIndexChanged( int idx )
Expand Down

0 comments on commit 9b4a824

Please sign in to comment.