1
0
mirror of https://github.com/qTox/qTox.git synced 2024-03-22 14:00:36 +08:00

fix bug (which is actually why aliasing was menu'd in the first place)

This commit is contained in:
dubslow 2014-11-17 21:22:40 -06:00
parent 845216fa2f
commit 6831778371

View File

@ -129,8 +129,9 @@ void CroppingLabel::hideTextEdit(bool acceptText)
{ {
if (acceptText) if (acceptText)
{ {
emit textChanged(textEdit->text(), origText); QString oldOrigText = origText;
setText(textEdit->text()); setText(textEdit->text()); // set before emitting so we don't override external reactions to signal
emit textChanged(textEdit->text(), oldOrigText);
} }
textEdit->hide(); textEdit->hide();