diff libgui/src/m-editor/file-editor.cc @ 19277:63c5f95afeb3 gui-release

Allow run selection for all editor file types (bug #43195) * file-editor.cc (handle_editor_state_changed): do not consider the actual file type when enabling/disabling the run selection action
author Torsten <ttl@justmail.de>
date Fri, 12 Sep 2014 19:51:33 +0200
parents dddffa2ff413
children 62756ba9e4e5
line wrap: on
line diff
--- a/libgui/src/m-editor/file-editor.cc
+++ b/libgui/src/m-editor/file-editor.cc
@@ -1023,7 +1023,7 @@
     {
       _copy_action->setEnabled (copy_available);
       _cut_action->setEnabled (copy_available);
-      _run_selection_action->setEnabled (copy_available && is_octave_file);
+      _run_selection_action->setEnabled (copy_available);
       _run_action->setEnabled (is_octave_file);
 
       if (!file_name.isEmpty ())