PATCH: kdelibs/kdeui/ktoolbarbutton.cpp

Martin Pley kde-core-devel at pley.org
Wed Nov 12 15:57:59 GMT 2003


Am Montag, 10. November 2003 13:52 schrieb Simon Hausmann:
> On Sat, Nov 08, 2003 at 07:18:41PM +0100, Martin Pley wrote:
> > Patch below fixes a crash when using KToolBarButton with parent !=
> > KToolBar
> [...]
> That's probably simpler (and faster) expressed as:
> d->m_parent = dynamic_cast<KToolBar *>( _parent );
> if ( d->m_parent )
>     connect( .... );

You're right.
Second try attached...

Martin
-------------- next part --------------
A non-text attachment was scrubbed...
Name: ktoolbarbutton-2003-11-12_diff.DEFANGED-88580
Type: application/defanged-88580
Size: 3764 bytes
Desc: not available
URL: <http://mail.kde.org/pipermail/kde-core-devel/attachments/20031112/fcbdd0a1/attachment.bin>


More information about the kde-core-devel mailing list