comparison 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
comparison
equal deleted inserted replaced
17635:7945344506ae 17636:230ffaf80ac9
938 QTextStream in (&file); 938 QTextStream in (&file);
939 QApplication::setOverrideCursor (Qt::WaitCursor); 939 QApplication::setOverrideCursor (Qt::WaitCursor);
940 _edit_area->setText (in.readAll ()); 940 _edit_area->setText (in.readAll ());
941 QApplication::restoreOverrideCursor (); 941 QApplication::restoreOverrideCursor ();
942 942
943 _copy_available = false; // no selection yet available
943 set_file_name (fileName); 944 set_file_name (fileName);
944 update_window_title (false); // window title (no modification) 945 update_window_title (false); // window title (no modification)
945 _edit_area->setModified (false); // loaded file is not modified yet 946 _edit_area->setModified (false); // loaded file is not modified yet
946 947
947 return QString (); 948 return QString ();