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

minor autoaway tweak

This commit is contained in:
dubslow 2014-11-13 16:53:41 -06:00 committed by Tux3 / Mlkj / !Lev.uXFMLA
parent d0e8d291bd
commit d566f5f9b3
No known key found for this signature in database
GPG Key ID: 7E086DD661263264

View File

@ -1032,8 +1032,8 @@ bool Widget::event(QEvent * e)
case QEvent::Wheel:
case QEvent::KeyPress:
case QEvent::KeyRelease:
if (autoAwayActive)
{
if (autoAwayActive && ui->statusButton->property("status").toString() == "away")
{ // be sure nothing else has changed the status in the meantime
qDebug() << "Widget: auto away deactivated at" << QTime::currentTime().toString();
autoAwayActive = false;
emit statusSet(Status::Online);