changeset 27656:959a63d1ede6

make Ctrl-C work as interrupt in command window again * QTerminal.cc (QTerminal::notice_settings): Don't provide default value for sc_main_edit_copy in call to settings->value.
author John W. Eaton <jwe@octave.org>
date Thu, 07 Nov 2019 19:10:19 -0500
parents 93f4e5e65fcd
children 4fb72773ba4a
files libgui/qterminal/libqterminal/QTerminal.cc
diffstat 1 files changed, 1 insertions(+), 2 deletions(-) [+]
line wrap: on
line diff
--- a/libgui/qterminal/libqterminal/QTerminal.cc	Thu Nov 07 13:47:46 2019 -0500
+++ b/libgui/qterminal/libqterminal/QTerminal.cc	Thu Nov 07 19:10:19 2019 -0500
@@ -269,8 +269,7 @@
 
   // check whether Copy shortcut is Ctrl-C
   QKeySequence sc;
-  sc = QKeySequence (settings->value (sc_main_edit_copy.key,
-                                      sc_main_edit_copy.def).toString ());
+  sc = QKeySequence (settings->value (sc_main_edit_copy.key).toString ());
 
   // if sc is empty, shortcuts are not yet in the settings (take the default)
   if (sc.isEmpty ())         // QKeySequence::Copy as second argument in