Skip to content

Commit a92c8d2

Browse files
manisandrom-kuhn
authored andcommittedApr 30, 2014
Remove redundant check
1 parent a704b9f commit a92c8d2

File tree

1 file changed

+3
-6
lines changed

1 file changed

+3
-6
lines changed
 

‎src/gui/qgsattributedialog.cpp

Lines changed: 3 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -283,12 +283,9 @@ void QgsAttributeDialog::init()
283283
}
284284

285285
// Set focus to first widget in list, to help entering data without moving the mouse.
286-
if ( mypInnerLayout->rowCount() > 0 )
287-
{
288-
QLayoutItem* item = mypInnerLayout->itemAtPosition( 0, 1 );
289-
if ( item && item->widget() )
290-
item->widget()->setFocus( Qt::OtherFocusReason );
291-
}
286+
QLayoutItem* item = mypInnerLayout->itemAtPosition( 0, 1 );
287+
if ( item && item->widget() )
288+
item->widget()->setFocus( Qt::OtherFocusReason );
292289

293290
QSpacerItem *mypSpacer = new QSpacerItem( 0, 0, QSizePolicy::Fixed, QSizePolicy::MinimumExpanding );
294291
mypInnerLayout->addItem( mypSpacer, mypInnerLayout->rowCount() + 1, 0 );

0 commit comments

Comments
 (0)
Please sign in to comment.