diff options
author | Christian Stenger <christian.stenger@qt.io> | 2018-05-14 10:09:31 +0200 |
---|---|---|
committer | Christian Stenger <christian.stenger@qt.io> | 2018-05-14 13:07:25 +0000 |
commit | 2653cb229c15d6cbf267fe37499d18bd95161b65 (patch) | |
tree | 7b7345df29763f54f1733c83b52530540ddcead5 /src | |
parent | d5ffac83e71e6f0b1edefb7cc0ce13af44ac13bd (diff) |
Utils: Fix manual usage of PathChooser
When manually typing inside a PathChooser that expects an
existing command it was no more possible to type a trailing
slash without tricking the PathChooser.
Change-Id: Ie30e7b0de030f4a3d64fce89ed799c03a594261d
Reviewed-by: hjk <hjk@qt.io>
Diffstat (limited to 'src')
-rw-r--r-- | src/libs/utils/pathchooser.cpp | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/src/libs/utils/pathchooser.cpp b/src/libs/utils/pathchooser.cpp index 202d9618f8..4bcd45767e 100644 --- a/src/libs/utils/pathchooser.cpp +++ b/src/libs/utils/pathchooser.cpp @@ -223,7 +223,7 @@ PathChooser::PathChooser(QWidget *parent) : [this] { emit rawPathChanged(rawPath()); }); connect(d->m_lineEdit, &FancyLineEdit::validChanged, this, &PathChooser::validChanged); connect(d->m_lineEdit, &QLineEdit::editingFinished, this, &PathChooser::editingFinished); - connect(d->m_lineEdit, &QLineEdit::textChanged, this, [this] { emit pathChanged(path()); }); + connect(d->m_lineEdit, &QLineEdit::textChanged, this, [this] { emit pathChanged(d->m_lineEdit->text()); }); d->m_lineEdit->setMinimumWidth(120); d->m_lineEdit->setErrorColor(creatorTheme()->color(Theme::TextColorError)); |