diff libgui/src/m-editor/file-editor-tab.cc @ 17636:230ffaf80ac9

fix enabling copy, cut and run selection actions depending on selected text * file-editor-tab.cc(load_file): set _copy_available to false for a new file * file-editor.cc(handle_editor_state_changed): enable/disable run selection; (construct): initially disable copy, cut and run selection action; (check_actions): do not enable copy, cut and run selection action depending on number of tabs
author Torsten <ttl@justmail.de>
date Fri, 11 Oct 2013 23:59:24 +0200
parents 7945344506ae
children 1be2993d3656
line wrap: on
line diff
--- a/libgui/src/m-editor/file-editor-tab.cc
+++ b/libgui/src/m-editor/file-editor-tab.cc
@@ -940,6 +940,7 @@
   _edit_area->setText (in.readAll ());
   QApplication::restoreOverrideCursor ();
 
+  _copy_available = false;     // no selection yet available
   set_file_name (fileName);
   update_window_title (false); // window title (no modification)
   _edit_area->setModified (false); // loaded file is not modified yet