From e61e8be9ecbf35f2c02ad82752a8b558aefe0d71 Mon Sep 17 00:00:00 2001 From: Sebastian Sauer Date: Fri, 26 Aug 2011 15:00:57 +0200 Subject: [PATCH] compile++ --- popupapplet.cpp | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/popupapplet.cpp b/popupapplet.cpp index 3b7652f8b..0db923d84 100644 --- a/popupapplet.cpp +++ b/popupapplet.cpp @@ -93,8 +93,8 @@ void PopupApplet::setPopupIcon(const QIcon &icon) void PopupApplet::setPopupIcon(const QString &iconName) { // Attempt 1: is it in the plasmoid package? - if (package()) { - const QString file = package()->filePath("images", iconName); + if (package().isValid()) { + const QString file = package().filePath("images", iconName); if (!file.isEmpty()) { setPopupIcon(KIcon(file)); return;