diff options
-rw-r--r-- | qt-ui/modeldelegates.cpp | 1 |
1 files changed, 1 insertions, 0 deletions
diff --git a/qt-ui/modeldelegates.cpp b/qt-ui/modeldelegates.cpp index a3796e0aa..add853cce 100644 --- a/qt-ui/modeldelegates.cpp +++ b/qt-ui/modeldelegates.cpp @@ -77,6 +77,7 @@ void ComboBoxDelegate::setEditorData(QWidget *editor, const QModelIndex &index) c->setCurrentIndex(i); else c->setEditText(data); + c->lineEdit()->setSelection(0, c->lineEdit()->text().length()); } struct CurrSelected { |