Skip to content
Permalink
Browse files

Remove redundant check

  • Loading branch information
manisandro authored and m-kuhn committed Apr 30, 2014
1 parent a704b9f commit a92c8d27d8591f702919d73a5807e849a5b90ee2
Showing with 3 additions and 6 deletions.
  1. +3 −6 src/gui/qgsattributedialog.cpp
@@ -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 );

0 comments on commit a92c8d2

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