Skip to content
This repository has been archived by the owner on Feb 12, 2023. It is now read-only.

Commit

Permalink
fix(widget): always force show window on activate event
Browse files Browse the repository at this point in the history
fixes #5459
  • Loading branch information
sudden6 committed Jan 13, 2019
1 parent 23da95a commit 08f368d
Showing 1 changed file with 5 additions and 3 deletions.
8 changes: 5 additions & 3 deletions src/widget/widget.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -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;
}
Expand Down

0 comments on commit 08f368d

Please sign in to comment.