Skip to content

Commit 74d5d01

Browse files
committed
use parent().raise_ because dock might be None
1 parent dc1db64 commit 74d5d01

1 file changed

Lines changed: 2 additions & 2 deletions

File tree

psyplot_gui/help_explorer.py

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -985,7 +985,7 @@ def show_help(self, obj, oname='', files=None):
985985
logger.debug("Could not document %s with %s viewer!",
986986
oname, viewername, exc_info=True)
987987
if ret:
988-
self.dock.raise_()
988+
self.parent().raise_()
989989
return ret
990990

991991
@docstrings.dedent
@@ -1010,7 +1010,7 @@ def show_rst(self, text, oname='', files=None):
10101010
ret = viewer.show_rst(text, oname=oname, files=files)
10111011
break
10121012
if ret:
1013-
self.dock.raise_()
1013+
self.parent().raise_()
10141014
return ret
10151015

10161016
@docstrings.dedent

0 commit comments

Comments
 (0)