From a0f3a0c9d7aed9c7a7f559602b7bdf18f38c5e7a Mon Sep 17 00:00:00 2001 From: Sylvain Corlay Date: Sun, 5 Apr 2015 19:00:26 -0400 Subject: [PATCH] Run selection enabled even with empty selection --- spyderlib/widgets/sourcecode/codeeditor.py | 1 - 1 file changed, 1 deletion(-) diff --git a/spyderlib/widgets/sourcecode/codeeditor.py b/spyderlib/widgets/sourcecode/codeeditor.py index 9ddb4bb6d9b..73b64634b7e 100644 --- a/spyderlib/widgets/sourcecode/codeeditor.py +++ b/spyderlib/widgets/sourcecode/codeeditor.py @@ -2559,7 +2559,6 @@ def contextMenuEvent(self, event): nbformat is not None) self.ipynb_convert_action.setVisible(self.is_json() and \ nbformat is not None) - self.run_selection_action.setEnabled(nonempty_selection) self.run_selection_action.setVisible(self.is_python()) self.gotodef_action.setVisible(self.go_to_definition_enabled \ and self.is_python_like())