diff options
| author | 2009-07-10 15:37:30 +0000 | |
|---|---|---|
| committer | 2009-07-10 15:37:30 +0000 | |
| commit | 019af3fb6d609c87a005615038812deea6ac8901 (patch) | |
| tree | cd25f4a540f09e24ed1ca067dd734c2c356e393a /src/modules/notifier | |
| parent | some win32 compilation fixes (diff) | |
| download | KVIrc-019af3fb6d609c87a005615038812deea6ac8901.tar.gz KVIrc-019af3fb6d609c87a005615038812deea6ac8901.tar.bz2 KVIrc-019af3fb6d609c87a005615038812deea6ac8901.zip | |
probable fix for #490
git-svn-id: https://svn.kvirc.de/svn/trunk/kvirc@3330 17fca916-40b9-46aa-a4ea-0a15b648b75c
Diffstat (limited to 'src/modules/notifier')
| -rw-r--r-- | src/modules/notifier/notifiermessage.cpp | 6 | ||||
| -rw-r--r-- | src/modules/notifier/notifierwindow.cpp | 4 | ||||
| -rw-r--r-- | src/modules/notifier/notifierwindowtab.cpp | 6 |
3 files changed, 8 insertions, 8 deletions
diff --git a/src/modules/notifier/notifiermessage.cpp b/src/modules/notifier/notifiermessage.cpp index 1c8fd2cf0..5074417d4 100644 --- a/src/modules/notifier/notifiermessage.cpp +++ b/src/modules/notifier/notifiermessage.cpp @@ -55,11 +55,11 @@ KviNotifierMessage::KviNotifierMessage(QPixmap * pPixmap, const QString &szText) KviNotifierMessage::~KviNotifierMessage() { if(m_pLabel0) - delete m_pLabel0; + m_pLabel0->deleteLater(); if(m_pLabel1) - delete m_pLabel1; + m_pLabel1->deleteLater(); if(m_pHBox) - delete m_pHBox; + m_pHBox->deleteLater(); } //TODO merge this code with kvi_topicw.cpp's one diff --git a/src/modules/notifier/notifierwindow.cpp b/src/modules/notifier/notifierwindow.cpp index e837225fc..b9b9d732e 100644 --- a/src/modules/notifier/notifierwindow.cpp +++ b/src/modules/notifier/notifierwindow.cpp @@ -159,7 +159,7 @@ KviNotifierWindow::~KviNotifierWindow() stopBlinkTimer(); stopAutoHideTimer(); delete m_pWndBorder; - delete m_pWndTabs; + m_pWndTabs->deleteLater(); } void KviNotifierWindow::updateGui() @@ -1052,7 +1052,7 @@ void KviNotifierWindow::slotTabCloseRequested(int index) KviNotifierWindowTab *tab = (KviNotifierWindowTab*) m_pWndTabs->widget(index); m_pWndTabs->removeTab(index); if(tab) - delete tab; + tab->deleteLater(); if(m_pWndTabs->count()==0) hideNow(); diff --git a/src/modules/notifier/notifierwindowtab.cpp b/src/modules/notifier/notifierwindowtab.cpp index 790768129..fdfb487b5 100644 --- a/src/modules/notifier/notifierwindowtab.cpp +++ b/src/modules/notifier/notifierwindowtab.cpp @@ -77,9 +77,9 @@ KviNotifierWindowTab::KviNotifierWindowTab(KviWindow * pWnd, QTabWidget *parent) KviNotifierWindowTab::~KviNotifierWindowTab() { if(m_pVBox) - delete m_pVBox; + m_pVBox->deleteLater(); if(m_pVWidget) - delete m_pVWidget; + m_pVWidget->deleteLater(); } void KviNotifierWindowTab::appendMessage(KviNotifierMessage * m) @@ -90,7 +90,7 @@ void KviNotifierWindowTab::appendMessage(KviNotifierMessage * m) QLayoutItem* tmp=m_pVBox->takeAt(0); KviNotifierMessage* tmp2=(KviNotifierMessage*)tmp->widget(); if(tmp2) - delete tmp2; + tmp2->deleteLater(); } } |
