summaryrefslogtreecommitdiffstats
path: root/starter/starter.cpp
diff options
context:
space:
mode:
Diffstat (limited to 'starter/starter.cpp')
-rw-r--r--starter/starter.cpp16
1 files changed, 9 insertions, 7 deletions
diff --git a/starter/starter.cpp b/starter/starter.cpp
index e411b77..df333e2 100644
--- a/starter/starter.cpp
+++ b/starter/starter.cpp
@@ -7,7 +7,7 @@
#include <tdeconfig.h>
#include <tdemessagebox.h>
#include <tdeapplication.h>
-# include <tdepopupmenu.h>
+#include <tdepopupmenu.h>
#include <tqimage.h>
#include <tqfile.h>
#include <tqlabel.h>
@@ -228,9 +228,9 @@ void starter::reloadImages()
pth = configDialog->BaseURL->url();
else
pth = iLoader->iconPath("bStarter", TDEIcon::Small, true);
- if (pth)
+ if (!pth.isEmpty())
pixmap = TQImage(pth);
- if (!pth || pixmap.isNull())
+ if (pth.isEmpty() || pixmap.isNull())
{
pixmap = TQPixmap(22,22);
pixmap.fill(TQt::black);
@@ -240,9 +240,9 @@ void starter::reloadImages()
pth = configDialog->HoverURL->url();
else
pth = iLoader->iconPath("bStarter_hover", TDEIcon::Small, true);
- if (pth)
+ if (!pth.isEmpty())
hoverPixmap = TQImage(pth);
- if (!pth || hoverPixmap.isNull())
+ if (pth.isEmpty() || hoverPixmap.isNull())
{
hoverPixmap = TQPixmap(22,22);
hoverPixmap.fill(TQt::black);
@@ -252,9 +252,9 @@ void starter::reloadImages()
pth = configDialog->DownURL->url();
else
pth = iLoader->iconPath("bStarter_down", TDEIcon::Small, true);
- if (pth)
+ if (!pth.isEmpty())
downPixmap = TQImage(pth);
- if (!pth || downPixmap.isNull())
+ if (pth.isEmpty() || downPixmap.isNull())
{
downPixmap = TQPixmap(22,22);
downPixmap.fill(TQt::white);
@@ -481,3 +481,5 @@ extern "C"
parent, "baghirastarter");
}
}
+
+#include "starter.moc"