From kde-core-devel Mon Jun 19 01:28:31 2006 From: Waldo Bastian Date: Mon, 19 Jun 2006 01:28:31 +0000 To: kde-core-devel Subject: Fwd: KAboutApplication patch Message-Id: <200606181828.38953.bastian () kde ! org> X-MARC-Message: https://marc.info/?l=kde-core-devel&m=115068015706845 MIME-Version: 1 Content-Type: multipart/mixed; boundary="--nextPart4797514.6IyrVVKbU1" --nextPart4797514.6IyrVVKbU1 Content-Type: multipart/mixed; boundary="Boundary-01=_/2flEyH7JnGIV1Y" Content-Transfer-Encoding: 7bit Content-Disposition: inline --Boundary-01=_/2flEyH7JnGIV1Y Content-Type: text/plain; charset="us-ascii" Content-Transfer-Encoding: quoted-printable Content-Disposition: inline =46YI =2D-=20 Linux Client Architect - Channel Platform Solutions Group - Intel Corporati= on --Boundary-01=_/2flEyH7JnGIV1Y Content-Type: message/rfc822; name="forwarded message" Content-Transfer-Encoding: 7bit Content-Description: Gary Cramblitt : KAboutApplication patch Content-Disposition: inline Return-Path: Received: from ktown.kde.org (ktown.kde.org [131.246.120.250]) by svn.net (8.13.6/8.12.10) with SMTP id k5J1DiE9026421 for ; Sun, 18 Jun 2006 18:13:44 -0700 Received: (qmail 4834 invoked by uid 1055); 19 Jun 2006 01:13:39 -0000 Delivered-To: kde.org-bastian@kde.org Received: (qmail 4832 invoked from network); 19 Jun 2006 01:13:38 -0000 X-Spam-Checker-Version: SpamAssassin 3.1.3 (2006-06-01) on ktown.kde.org Received: from rwcrmhc15.comcast.net (216.148.227.155) by ktown.kde.org with SMTP; 19 Jun 2006 01:13:37 -0000 Received: from newton.columbine.comcast.net (c-68-49-219-14.hsd1.md.comcast.net[68.49.219.14](misconfigured sender)) by comcast.net (rwcrmhc15) with ESMTP id <20060619011307m15003d7l6e>; Mon, 19 Jun 2006 01:13:07 +0000 From: Gary Cramblitt To: Waldo Bastian Subject: KAboutApplication patch Date: Sun, 18 Jun 2006 21:13:08 -0400 User-Agent: KMail/1.9.1 MIME-Version: 1.0 Content-Type: Multipart/Mixed; boundary="Boundary-00=_koflESMR9l+PaKi" Message-Id: <200606182113.08543.garycramblitt@comcast.net> X-Virus-Status: No --Boundary-00=_koflESMR9l+PaKi Content-Type: text/plain; charset="us-ascii" Content-Transfer-Encoding: 7bit Content-Disposition: inline In trunk, KAboutApplication will crash if the aboutData argument is null. Patch attached. -- Gary Cramblitt (aka PhantomsDad) --Boundary-00=_koflESMR9l+PaKi Content-Type: text/x-diff; charset="us-ascii"; name="kaboutapplication.diff" Content-Transfer-Encoding: 7bit Content-Disposition: attachment; filename="kaboutapplication.diff" Index: kaboutapplication.cpp =================================================================== --- kaboutapplication.cpp (revision 552349) +++ kaboutapplication.cpp (working copy) @@ -34,7 +34,7 @@ #include KAboutApplication::KAboutApplication( const KAboutData *aboutData, QWidget *parent, bool modal ) - :KAboutDialog( AbtTabbed|AbtProduct, aboutData->programName(), Close, Close, parent, modal ) + :KAboutDialog( AbtTabbed|AbtProduct, "", Close, Close, parent, modal ) { if( aboutData == 0 ) aboutData = KGlobal::instance()->aboutData(); @@ -52,6 +52,8 @@ appPage->addWidget( appPageLabel ); return; } + + setPlainCaption( i18n("About %1", aboutData->programName() ) ); setProduct( aboutData->programName(), aboutData->version(), QString(), QString() ); --Boundary-00=_koflESMR9l+PaKi-- --Boundary-01=_/2flEyH7JnGIV1Y-- --nextPart4797514.6IyrVVKbU1 Content-Type: application/pgp-signature -----BEGIN PGP SIGNATURE----- Version: GnuPG v1.4.1 (GNU/Linux) iD8DBQBElf3GN4pvrENfboIRAqS/AJ91apHw9nLoBJXZz5bbia6n9huFZwCePupg 4yZiXh/qPN1FQS51LHIZtsM= =aJPh -----END PGP SIGNATURE----- --nextPart4797514.6IyrVVKbU1--