Fix stack clearing button
This commit is contained in:
parent
0517665473
commit
39d4c82d67
@ -318,7 +318,6 @@ class ConsoleWidget(QtGui.QWidget):
|
|||||||
elif not self.ui.catchAllExceptionsBtn.isChecked():
|
elif not self.ui.catchAllExceptionsBtn.isChecked():
|
||||||
return
|
return
|
||||||
|
|
||||||
self.ui.clearExceptionBtn.setEnabled(True)
|
|
||||||
self.currentTraceback = tb
|
self.currentTraceback = tb
|
||||||
|
|
||||||
excMessage = ''.join(traceback.format_exception_only(excType, exc))
|
excMessage = ''.join(traceback.format_exception_only(excType, exc))
|
||||||
@ -343,6 +342,8 @@ class ConsoleWidget(QtGui.QWidget):
|
|||||||
the end of the stack list. If *tb* is None, then sys.exc_info() will
|
the end of the stack list. If *tb* is None, then sys.exc_info() will
|
||||||
be checked instead.
|
be checked instead.
|
||||||
"""
|
"""
|
||||||
|
self.ui.clearExceptionBtn.setEnabled(True)
|
||||||
|
|
||||||
if frame is None:
|
if frame is None:
|
||||||
frame = sys._getframe().f_back
|
frame = sys._getframe().f_back
|
||||||
|
|
||||||
|
Loading…
x
Reference in New Issue
Block a user