aboutsummaryrefslogtreecommitdiffstats
path: root/src/modules/addon
diff options
context:
space:
mode:
authorGravatar Szymon Tomasz Stefanek2011-03-25 00:50:12 +0000
committerGravatar Szymon Tomasz Stefanek2011-03-25 00:50:12 +0000
commit0487f8ce5c7bc94f549f3fa3b23a2670e66a5da7 (patch)
treeef8e0fdd48cb1d08a9b835ae3c88cbd551d9449e /src/modules/addon
parentupdate (diff)
downloadKVIrc-0487f8ce5c7bc94f549f3fa3b23a2670e66a5da7.tar.gz
KVIrc-0487f8ce5c7bc94f549f3fa3b23a2670e66a5da7.tar.bz2
KVIrc-0487f8ce5c7bc94f549f3fa3b23a2670e66a5da7.zip
Use QPointer for the WebAddonInterfaceDialog
git-svn-id: https://svn.kvirc.de/svn/trunk/kvirc@5702 17fca916-40b9-46aa-a4ea-0a15b648b75c
Diffstat (limited to 'src/modules/addon')
-rw-r--r--src/modules/addon/AddonManagementDialog.cpp4
-rw-r--r--src/modules/addon/AddonManagementDialog.h2
2 files changed, 3 insertions, 3 deletions
diff --git a/src/modules/addon/AddonManagementDialog.cpp b/src/modules/addon/AddonManagementDialog.cpp
index dfcf4ed1c..08c13ec7b 100644
--- a/src/modules/addon/AddonManagementDialog.cpp
+++ b/src/modules/addon/AddonManagementDialog.cpp
@@ -203,12 +203,12 @@ AddonManagementDialog::AddonManagementDialog(QWidget * p)
AddonManagementDialog::~AddonManagementDialog()
{
- g_rectManagementDialogGeometry = QRect(pos().x(),pos().y(),size().width(),size().height());
- m_pInstance = 0;
#ifdef COMPILE_WEBKIT_SUPPORT
if(m_pWebInterfaceDialog)
delete m_pWebInterfaceDialog;
#endif //COMPILE_WEBKIT_SUPPORT
+ g_rectManagementDialogGeometry = QRect(pos().x(),pos().y(),size().width(),size().height());
+ m_pInstance = NULL;
}
void AddonManagementDialog::fillListView()
diff --git a/src/modules/addon/AddonManagementDialog.h b/src/modules/addon/AddonManagementDialog.h
index e21635085..113d02500 100644
--- a/src/modules/addon/AddonManagementDialog.h
+++ b/src/modules/addon/AddonManagementDialog.h
@@ -74,7 +74,7 @@ protected:
QToolButton * m_pPackButton;
QToolButton * m_pUninstallButton;
#ifdef COMPILE_WEBKIT_SUPPORT
- WebAddonInterfaceDialog * m_pWebInterfaceDialog;
+ QPointer<WebAddonInterfaceDialog> * m_pWebInterfaceDialog;
#endif //COMPILE_WEBKIT_SUPPORT
public:
static AddonManagementDialog * instance(){ return m_pInstance; };