diff --git a/spyder/widgets/ipythonconsole/shell.py b/spyder/widgets/ipythonconsole/shell.py index 93da0f9b482..8c221535bb0 100644 --- a/spyder/widgets/ipythonconsole/shell.py +++ b/spyder/widgets/ipythonconsole/shell.py @@ -251,6 +251,7 @@ def reset_namespace(self, warning=False, silent=True, message=False): # Update checkbox based on user interaction CONF.set('ipython_console', 'show_reset_namespace_warning', not box.is_checked()) + self.ipyclient.reset_warning = not box.is_checked() if answer != QMessageBox.Yes: return diff --git a/spyder/widgets/shell.py b/spyder/widgets/shell.py index a557bf18352..3fb6642010c 100644 --- a/spyder/widgets/shell.py +++ b/spyder/widgets/shell.py @@ -24,7 +24,7 @@ from qtpy.compat import getsavefilename from qtpy.QtCore import Property, QCoreApplication, Qt, QTimer, Signal, Slot from qtpy.QtGui import QKeySequence, QTextCharFormat, QTextCursor -from qtpy.QtWidgets import QApplication, QMenu, QMessageBox, QToolTip +from qtpy.QtWidgets import QApplication, QMenu, QToolTip # Local import from spyder.config.base import _, DEBUG, get_conf_path, STDERR