From 8d7cfaf101c780c7b870234de5cc14b51544f6d6 Mon Sep 17 00:00:00 2001 From: llornkcor Date: Fri, 25 Oct 2002 16:17:24 +0000 Subject: fix --- (limited to 'core') diff --git a/core/applets/cardmon/cardmon.cpp b/core/applets/cardmon/cardmon.cpp index 4199273..1663af2 100644 --- a/core/applets/cardmon/cardmon.cpp +++ b/core/applets/cardmon/cardmon.cpp @@ -74,7 +74,7 @@ CardMonitor::~CardMonitor() { void CardMonitor::popUp( QString message, QString icon ) { if ( ! popupMenu ) { - popupMenu = new QPopupMenu(0); + popupMenu = new QPopupMenu(); } popupMenu->clear(); @@ -95,8 +95,6 @@ void CardMonitor::popUp( QString message, QString icon ) { void CardMonitor::popupTimeout() { popupMenu->hide(); - popupMenu=0; - if(popupMenu) delete popupMenu; } void CardMonitor::mousePressEvent( QMouseEvent * ) { -- cgit v0.9.0.2