Am Sun, 25 Dec 2011 10:15:01 +0800 schrieb Jekyll Wu <adap...@gmail.com>:
> -----BEGIN PGP SIGNED MESSAGE----- > Hash: SHA1 > > Hi all, > > I am trying to fix bug 259539. The real problem is some global > shortcuts of klipper keep resetting to 'None' after it restarts. Here > is one problematic line: > > action->setGlobalShortcut(KShortcut(.....), > KAction::DefaultShortcut); just action->setGlobalShortcut(KShortcut(.....)); unless there's some action->setGlobalShortcut(KShortcut(.....), KAction::ActiveShortcut); and some other very special stuff around (ie. forgetting the shortcut is actually intended, like you have NoAutoloading as well - what i don't know in for this case) Also ensure the action has a unique objectName(), but the mentioned line is a bug for "just get me some global shortcut like everyone has" and omitting the second parameter would get you what you probably expect. Cheers, Thomas