[prev in list] [next in list] [prev in thread] [next in thread]
List: kde-core-devel
Subject: Re: [Help] Is this wrong usage or a bug of global shortcut?
From: Thomas =?UTF-8?B?TMO8Ymtpbmc=?= <thomas.luebking () gmail ! com>
Date: 2011-12-25 10:51:35
Message-ID: 20111225115135.4654ede7 () gmail ! com
[Download RAW message or body]
Am Sun, 25 Dec 2011 10:15:01 +0800
schrieb Jekyll Wu <adaptee@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
[prev in list] [next in list] [prev in thread] [next in thread]
Configure |
About |
News |
Add a list |
Sponsored by KoreLogic