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

fix(widget): always force show window on activate event

fixes #5459
This commit is contained in:
sudden6 2018-12-21 09:02:40 +01:00
parent 23da95a983
commit 08f368da43
No known key found for this signature in database
GPG Key ID: 279509B499E032B9

View File

@ -81,10 +81,12 @@
bool toxActivateEventHandler(const QByteArray&)
{
Widget* widget = Nexus::getDesktopGUI();
if (!widget)
if (!widget) {
return true;
if (!widget->isActiveWindow())
widget->forceShow();
}
qDebug() << "Handling [activate] event from other instance";
widget->forceShow();
return true;
}