mirror of
https://github.com/qgis/QGIS.git
synced 2025-02-25 00:58:06 -05:00
Fix #6843
This commit is contained in:
parent
9e829cb532
commit
289a20727c
@ -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
|
||||
|
Loading…
x
Reference in New Issue
Block a user