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

Fix CroppingLabel emitting textChanged twice

This commit is contained in:
Tux3 / Mlkj / !Lev.uXFMLA 2014-11-14 20:12:23 +01:00
parent c4f9baf04b
commit b8031498db
No known key found for this signature in database
GPG Key ID: 7E086DD661263264
2 changed files with 4 additions and 1 deletions

View File

@ -94,6 +94,9 @@ bool CroppingLabel::eventFilter(QObject *obj, QEvent *e)
// events fired by the QLineEdit
if (obj == textEdit)
{
if (!textEdit->isVisible())
return false;
if (e->type() == QEvent::KeyPress)
{
QKeyEvent* keyEvent = static_cast<QKeyEvent*>(e);

View File

@ -1184,4 +1184,4 @@ void Widget::clearAllReceipts()
{
f->getChatForm()->clearReciepts();
}
}
}