Skip to content
Permalink
Browse files

Fix test

  • Loading branch information
nyalldawson committed Oct 6, 2020
1 parent 9093bdf commit 31dba5453b709f349dd83aab3ec300793353c2da
Showing with 3 additions and 2 deletions.
  1. +3 −2 python/console/console.py
@@ -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()

0 comments on commit 31dba54

Please sign in to comment.
You can’t perform that action at this time.