summaryrefslogtreecommitdiffstats
path: root/karm/task.cpp
diff options
context:
space:
mode:
Diffstat (limited to 'karm/task.cpp')
-rw-r--r--karm/task.cpp8
1 files changed, 4 insertions, 4 deletions
diff --git a/karm/task.cpp b/karm/task.cpp
index 5ade426f0..7d84bcd2c 100644
--- a/karm/task.cpp
+++ b/karm/task.cpp
@@ -183,12 +183,12 @@ void Task::setPercentComplete(const int percent, KarmStorage *storage)
void Task::setPixmapProgress()
{
- TQPixmap* icon = new TQPixmap();
+ TQPixmap icon ;
if (_percentcomplete >= 100)
- *icon = UserIcon("task-complete.xpm");
+ icon = UserIcon("task-complete.xpm");
else
- *icon = UserIcon("task-incomplete.xpm");
- setPixmap(0, *icon);
+ icon = UserIcon("task-incomplete.xpm");
+ setPixmap(0, icon);
}
bool Task::isComplete() { return _percentcomplete == 100; }