Skip to content
Permalink
Browse files

Only restore selection if it exists

  • Loading branch information
m-kuhn committed Oct 25, 2017
1 parent ef2d17f commit 98bad0505113aaaba7b5fdbc28959b6cc2b7a9c0
Showing with 2 additions and 1 deletion.
  1. +2 −1 src/gui/qgsfeaturelistcombobox.cpp
@@ -213,5 +213,6 @@ void QgsFeatureListComboBox::LineEditState::restore( QLineEdit *lineEdit ) const
{
lineEdit->setText( text );
lineEdit->setCursorPosition( cursorPosition );
lineEdit->setSelection( selectionStart, selectionLength );
if ( selectionStart > -1 )
lineEdit->setSelection( selectionStart, selectionLength );
}

0 comments on commit 98bad05

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