StelActionMgr.cpp   StelActionMgr.cpp 
skipping to change at line 287 skipping to change at line 287
{ {
if ( action->keySequence == action->defaultKeySequence && if ( action->keySequence == action->defaultKeySequence &&
action->altKeySequence == action->defaultAlt KeySequence) action->altKeySequence == action->defaultAlt KeySequence)
continue; continue;
QString seq = action->keySequence.toString().replace(" ", "" ); QString seq = action->keySequence.toString().replace(" ", "" );
if (action->altKeySequence != action->defaultAltKeySequence) if (action->altKeySequence != action->defaultAltKeySequence)
seq += " " + action->altKeySequence.toString().repla ce(" ", ""); seq += " " + action->altKeySequence.toString().repla ce(" ", "");
conf->setValue(action->objectName(), seq); conf->setValue(action->objectName(), seq);
} }
conf->endGroup(); conf->endGroup();
// Apparently shortcuts was changed
emit shortcutsChanged();
} }
void StelActionMgr::restoreDefaultShortcuts() void StelActionMgr::restoreDefaultShortcuts()
{ {
foreach(StelAction* action, findChildren<StelAction*>()) foreach(StelAction* action, findChildren<StelAction*>())
{ {
action->keySequence = action->defaultKeySequence; action->keySequence = action->defaultKeySequence;
action->altKeySequence = action->defaultAltKeySequence; action->altKeySequence = action->defaultAltKeySequence;
emit action->changed(); emit action->changed();
} }
 End of changes. 1 change blocks. 
0 lines changed or deleted 2 lines changed or added

This html diff was produced by rfcdiff 1.41. The latest version is available from http://tools.ietf.org/tools/rfcdiff/