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