# HG changeset patch # User Torsten # Date 1430463408 -7200 # Node ID f5e65f806123701ecdd0bd700bf1fcfa1300bee5 # Parent 3797df9219887163675da937e707536d0cfe55ce 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 diff -r 3797df921988 -r f5e65f806123 libgui/qterminal/libqterminal/QTerminal.cc --- 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;