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:
parent
d0e8d291bd
commit
d566f5f9b3
@ -1032,8 +1032,8 @@ bool Widget::event(QEvent * e)
|
|||||||
case QEvent::Wheel:
|
case QEvent::Wheel:
|
||||||
case QEvent::KeyPress:
|
case QEvent::KeyPress:
|
||||||
case QEvent::KeyRelease:
|
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();
|
qDebug() << "Widget: auto away deactivated at" << QTime::currentTime().toString();
|
||||||
autoAwayActive = false;
|
autoAwayActive = false;
|
||||||
emit statusSet(Status::Online);
|
emit statusSet(Status::Online);
|
||||||
|
Loading…
x
Reference in New Issue
Block a user