[Panel-devel] KDE/kdebase/workspace/plasma/applets/kickoff/core

Aaron J. Seigo aseigo at kde.org
Wed Dec 19 20:58:05 CET 2007


On Wednesday 19 December 2007, Alexis Ménard wrote:
> SVN commit 750623 by menard:
>
> Prevent a crash in my case
>
>
>  M  +3 -1      systemmodel.cpp
>
>
> --- trunk/KDE/kdebase/workspace/plasma/applets/kickoff/core/systemmodel.cpp
> #750622:750623 @@ -222,7 +222,8 @@
>
>      if (index.internalId()-1==APPLICATIONS_ROW) {
>          KService::Ptr service =
> KService::serviceByStorageId(d->appsList[index.row()]); -
> +      if (service)
> +      {
>          switch(role)
>          {
>          case Qt::DisplayRole:
> @@ -236,6 +237,7 @@
>          default:
>              return QVariant();
>          }
> +      }

E_BAD_INDENTATION

also ... if there is no service you want to return an empty QVariant. i've 
fixed and will commit.

-- 
Aaron J. Seigo
humru othro a kohnu se
GPG Fingerprint: 8B8B 2209 0C6F 7C47 B1EA  EE75 D6B7 2EB1 A7F1 DB43

KDE core developer sponsored by Trolltech
-------------- next part --------------
A non-text attachment was scrubbed...
Name: not available
Type: application/pgp-signature
Size: 189 bytes
Desc: not available
Url : http://mail.kde.org/pipermail/panel-devel/attachments/20071219/11ee5f26/attachment.pgp 


More information about the Panel-devel mailing list