Mercurial > octave-antonio
changeset 20147:f0a8c1bc3b60 stable
fix checking copy shortcut in terminal when no setting available (bug #44968)
* QTerminal.cc (notice_settings): check for empty copy shortcut from settings
file and take the default in this case
author | Torsten <ttl@justmail.de> |
---|---|
date | Fri, 01 May 2015 08:56:48 +0200 |
parents | f8d443fe0de3 |
children | 4a41b7d426b6 |
files | libgui/qterminal/libqterminal/QTerminal.cc |
diffstat | 1 files changed, 4 insertions(+), 0 deletions(-) [+] |
line wrap: on
line diff
--- a/libgui/qterminal/libqterminal/QTerminal.cc Wed Apr 29 17:09:24 2015 -0700 +++ b/libgui/qterminal/libqterminal/QTerminal.cc Fri May 01 08:56:48 2015 +0200 @@ -139,6 +139,10 @@ key.append ("_1"); // if second set is active copy = QKeySequence (settings->value (key).toString ()); // the copy shortcut + // if copy is empty, shortcuts are not yet in the settings (take the default) + if (copy.isEmpty ()) // QKeySequence::Copy as second argument in + copy = QKeySequence::Copy; // settings->value () does not work! + // dis- or enable extra interrupt action QKeySequence ctrl; ctrl = Qt::ControlModifier;