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:
parent
c4f9baf04b
commit
b8031498db
@ -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);
|
||||
|
@ -1184,4 +1184,4 @@ void Widget::clearAllReceipts()
|
||||
{
|
||||
f->getChatForm()->clearReciepts();
|
||||
}
|
||||
}
|
||||
}
|
||||
|
Loading…
x
Reference in New Issue
Block a user