[prev in list] [next in list] [prev in thread] [next in thread] 

List:       kde-devel
Subject:    Question about a KAction Warning
From:       Michael Pyne <pynm0001 () comcast ! net>
Date:       2004-07-10 4:01:11
Message-ID: 200407100001.13620.pynm0001 () comcast ! net
[Download RAW message or body]

-----BEGIN PGP SIGNED MESSAGE-----
Hash: SHA1

Hi all,

I'm on a quest right now to remove warnings from the JuK startup sequence, and 
I want to know what is causing this type of warning:
kdecore (KAction): WARNING: KAction::plug(): has no KAccel object; this = 
0x8201b90 name = newSearchPlaylist parentCollection = 0x81ecca0

which is called by this code:
    menu->insert(createAction(i18n("&Empty Playlist..."),
          SLOT(slotCreatePlaylist()),
          "newPlaylist", "window_new", "CTRL+n"));

createAction() is a function which calls the correct KAction constructor 
depending on whether the icon argument "window_new" is null or not.  menu is 
a KActionMenu*.

The code in kaction.cpp seems to indicate that the warning is because the 
shortcut argument is set but the KAccel object wasn't constructed, but I 
can't see why that would be the case.  Perhaps it's an error in 
KAction::plug()?

Regards,
 - Michael Pyne
-----BEGIN PGP SIGNATURE-----
Version: GnuPG v1.2.4 (GNU/Linux)

iD8DBQFA72oHqjQYp5Omm0oRAgxTAKDX47ukYgfWVsBKirCKraRHsWPs3QCeM6PF
4YF1nPld42JJWwjsmyYdFyk=
=lpKC
-----END PGP SIGNATURE-----
 
>> Visit http://mail.kde.org/mailman/listinfo/kde-devel#unsub to unsubscribe <<

[prev in list] [next in list] [prev in thread] [next in thread] 

Configure | About | News | Add a list | Sponsored by KoreLogic