Skip to content
Permalink
Browse files

Fix initial widget focus in credential dialog

  • Loading branch information
m-kuhn committed Jun 23, 2016
1 parent defd738 commit 4d480725583046c02bf945e9113b5a598cdd6fbe
Showing with 10 additions and 0 deletions.
  1. +2 −0 src/gui/qgscredentialdialog.cpp
  2. +8 −0 src/ui/qgscredentialdialog.ui
@@ -43,6 +43,7 @@ QgsCredentialDialog::QgsCredentialDialog( QWidget *parent, const Qt::WindowFlags
Qt::BlockingQueuedConnection );
mOkButton = buttonBox->button( QDialogButtonBox::Ok );
leMasterPass->setPlaceholderText( tr( "Required" ) );
leUsername->setFocus();
}

QgsCredentialDialog::~QgsCredentialDialog()
@@ -119,6 +120,7 @@ void QgsCredentialDialog::requestCredentialsMasterPassword( QString * password,
{
QgsDebugMsg( "Entering." );
stackedWidget->setCurrentIndex( 1 );
leMasterPass->setFocus();

QString titletxt( stored ? tr( "Enter CURRENT master authentication password" ) : tr( "Set NEW master authentication password" ) );
lblPasswordTitle->setText( titletxt );
@@ -220,6 +220,14 @@ font-style: italic;
</item>
</layout>
</widget>
<tabstops>
<tabstop>leUsername</tabstop>
<tabstop>lePassword</tabstop>
<tabstop>leMasterPass</tabstop>
<tabstop>leMasterPassVerify</tabstop>
<tabstop>chkMasterPassShow</tabstop>
<tabstop>chkbxEraseAuthDb</tabstop>
</tabstops>
<resources/>
<connections>
<connection>

0 comments on commit 4d48072

Please sign in to comment.
You can’t perform that action at this time.