Skip to content

Commit

Permalink
Merge pull request #929 from benoit-pierre/fix_926
Browse files Browse the repository at this point in the history
gui_qt: fix possible crash on Linux
  • Loading branch information
benoit-pierre committed Apr 1, 2018
2 parents 75976df + caab6fb commit e062cda
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion plover/gui_qt/main_window.py
Original file line number Diff line number Diff line change
Expand Up @@ -169,7 +169,7 @@ def _activate_dialog(self, name, args=(), manage_windows=False):
def on_finished():
del self._active_dialogs[name]
dialog.deleteLater()
if manage_windows:
if manage_windows and previous_window is not None:
wmctrl.SetForegroundWindow(previous_window)
dialog.finished.connect(on_finished)
dialog.show()
Expand Down

0 comments on commit e062cda

Please sign in to comment.