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

List:       kde-core-devel
Subject:    Re: KDE/kdelibs/kdeui/xmlgui
From:       "Friedrich W. H. Kossebau" <kossebau () kde ! org>
Date:       2009-01-01 23:56:02
Message-ID: 200901020056.02627.kossebau () kde ! org
[Download RAW message or body]

Am Freitag, 2. Januar 2009, um 00:45 Uhr, schrieb Friedrich W. H. Kossebau:
> Am Freitag, 2. Januar 2009, um 00:29 Uhr, schrieb Friedrich W. H. Kossebau:
> > Patch? None so far. Bedtime for me now.
>
> Unsolved problem and bedtime? Sure... first patch, which seems to work the
> last five minutes.
>
> --- 8< --------
> Index: kdelibs/kdeui/actions/kstandardaction.cpp
> ===================================================================
> --- kdelibs/kdeui/actions/kstandardaction.cpp   (Revision 903572)
> +++ kdelibs/kdeui/actions/kstandardaction.cpp   (Arbeitskopie)
> @@ -206,9 +206,9 @@
>        QObject::connect(pAction, SIGNAL(urlSelected(const KUrl &)), recvr,
> slot);
>    }
>
> -  KActionCollection *collection = qobject_cast<KActionCollection
> *>(parent); -  if (pAction && collection)
> -      collection->addAction(pAction->objectName(), pAction);
>
>    return pAction;
>  }
> --- 8< --------

Forget about this one, caller != parent.

Bedtime, really
Friedrich
-- 
Okteta - KDE 4 Hex Editor - http://utils.kde.org/projects/okteta
[prev in list] [next in list] [prev in thread] [next in thread] 

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