diff options
Diffstat (limited to 'src')
-rw-r--r-- | src/gui/text/qlinecontrol.cpp | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/src/gui/text/qlinecontrol.cpp b/src/gui/text/qlinecontrol.cpp index 0113f4b176..33de367d96 100644 --- a/src/gui/text/qlinecontrol.cpp +++ b/src/gui/text/qlinecontrol.cpp @@ -654,10 +654,10 @@ void QLineControl::internalSetText(const QString &txt, int pos, bool edited) m_cursor = (pos < 0 || pos > m_text.length()) ? m_text.length() : pos; m_textDirty = (oldText != m_text); + bool changed = finishChange(-1, true, edited); #ifdef QT_NO_ACCESSIBILITY - Q_UNUSED(edited) + Q_UNUSED(changed) #else - bool changed = finishChange(-1, true, edited); if (changed) QAccessible::updateAccessibility(parent(), 0, QAccessible::TextUpdated); #endif |