Skip to content

Commit

Permalink
Fix test
Browse files Browse the repository at this point in the history
  • Loading branch information
nyalldawson committed Oct 6, 2020
1 parent 9093bdf commit 31dba54
Showing 1 changed file with 3 additions and 2 deletions.
5 changes: 3 additions & 2 deletions python/console/console.py
Expand Up @@ -562,8 +562,9 @@ def __init__(self, parent=None):
self.findScut.setContext(Qt.WidgetWithChildrenShortcut)
self.findScut.activated.connect(self._closeFind)

self.exit_blocker = ConsoleExitBlocker(self)
iface.registerApplicationExitBlocker(self.exit_blocker)
if iface is not None:
self.exit_blocker = ConsoleExitBlocker(self)
iface.registerApplicationExitBlocker(self.exit_blocker)

def allowExit(self):
tab_count = self.tabEditorWidget.count()
Expand Down

0 comments on commit 31dba54

Please sign in to comment.