Skip to content

Commit

Permalink
Remove redundant check
Browse files Browse the repository at this point in the history
  • Loading branch information
manisandro authored and m-kuhn committed Apr 30, 2014
1 parent a704b9f commit a92c8d2
Showing 1 changed file with 3 additions and 6 deletions.
9 changes: 3 additions & 6 deletions src/gui/qgsattributedialog.cpp
Expand Up @@ -283,12 +283,9 @@ void QgsAttributeDialog::init()
}

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

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

0 comments on commit a92c8d2

Please sign in to comment.