diff options
author | Samuel Gaist <samuel.gaist@idiap.ch> | 2018-11-25 21:58:47 +0100 |
---|---|---|
committer | Samuel Gaist <samuel.gaist@idiap.ch> | 2019-02-12 15:29:49 +0000 |
commit | dd1a6308719929b0798447244b401376d983cfbf (patch) | |
tree | 65fc14cf1b1c5be0a973bbde6e3d842e0a2387af /src/corelib/global | |
parent | df2b76046de4af7a47fa8303d5f261e3c5d120fe (diff) |
QLineEdit: don't emit editingFinished if nothing was done
When a modal dialog is called from a slot connected to the
editingFinished signal, the chain of events resulting from the focus
returning to this widget will make the editingFinished signal emitted
again. This patch uses a new variable to keep track of the fact that
there was a modification. Once editingFinished was emitted, that flag
is cleared so next time the signal will be emitted again only if a
modification was made to the line edit content.
[ChangeLog][QtWidget][QLineEdit] Behavior change: now the
editingFinished signal is emitted only once after the line edit content
was edited.
Fixes: QTBUG-40
Change-Id: Ia4760bad8717f1758c3939132c446b4b4c6cd498
Reviewed-by: Friedemann Kleint <Friedemann.Kleint@qt.io>
Reviewed-by: Shawn Rutledge <shawn.rutledge@qt.io>
Diffstat (limited to 'src/corelib/global')
0 files changed, 0 insertions, 0 deletions