aboutsummaryrefslogtreecommitdiffstats
path: root/src/modules
diff options
context:
space:
mode:
authorGravatar Fabio Bas2012-04-09 16:03:46 +0000
committerGravatar Fabio Bas2012-04-09 16:03:46 +0000
commitf2485de79aa4b7fb6a76358a998528d2c6e44f63 (patch)
treefc192fb9a26651b2d16ba1d401c9345d0d980781 /src/modules
parentsystem.runcmd: added gnome-terminal to the list of terminals, added proper ha... (diff)
downloadKVIrc-f2485de79aa4b7fb6a76358a998528d2c6e44f63.tar.gz
KVIrc-f2485de79aa4b7fb6a76358a998528d2c6e44f63.tar.bz2
KVIrc-f2485de79aa4b7fb6a76358a998528d2c6e44f63.zip
fixed a couple crashes in theme module
git-svn-id: https://svn.kvirc.de/svn/trunk/kvirc@6131 17fca916-40b9-46aa-a4ea-0a15b648b75c
Diffstat (limited to 'src/modules')
-rw-r--r--src/modules/theme/ThemeManagementDialog.cpp12
1 files changed, 6 insertions, 6 deletions
diff --git a/src/modules/theme/ThemeManagementDialog.cpp b/src/modules/theme/ThemeManagementDialog.cpp
index 50599a80d..0ca16331d 100644
--- a/src/modules/theme/ThemeManagementDialog.cpp
+++ b/src/modules/theme/ThemeManagementDialog.cpp
@@ -260,7 +260,7 @@ ThemeManagementDialog::~ThemeManagementDialog()
#ifdef COMPILE_WEBKIT_SUPPORT
if(m_pWebThemeInterfaceDialog)
{
- delete m_pWebThemeInterfaceDialog;
+ m_pWebThemeInterfaceDialog->deleteLater();
m_pWebThemeInterfaceDialog = NULL;
}
#endif //COMPILE_WEBKIT_SUPPORT
@@ -268,7 +268,7 @@ ThemeManagementDialog::~ThemeManagementDialog()
void ThemeManagementDialog::closeClicked()
{
- delete this;
+ deleteLater();
m_pInstance = 0;
}
@@ -304,7 +304,7 @@ void ThemeManagementDialog::display(bool bTopLevel)
void ThemeManagementDialog::cleanup()
{
if(!m_pInstance)return;
- delete m_pInstance;
+ m_pInstance->deleteLater();
m_pInstance = 0;
}
@@ -319,7 +319,7 @@ void ThemeManagementDialog::packTheme()
PackThemeDialog * pDialog = new PackThemeDialog(this,&dl);
pDialog->exec();
- delete pDialog;
+ pDialog->deleteLater();
}
void ThemeManagementDialog::contextMenuRequested(const QPoint & pos)
@@ -428,7 +428,7 @@ void ThemeManagementDialog::saveCurrentTheme()
{
SaveThemeDialog * pSaveThemeDialog = new SaveThemeDialog(this);
pSaveThemeDialog->exec();
- delete pSaveThemeDialog;
+ pSaveThemeDialog->deleteLater();
fillThemeBox();
}
@@ -479,7 +479,7 @@ void ThemeManagementDialog::enableDisableButtons()
void ThemeManagementDialog::closeEvent(QCloseEvent * e)
{
e->ignore();
- delete this;
+ deleteLater();
}
void ThemeManagementDialog::tipRequest(QListWidgetItem *,const QPoint &)