mirror of
https://github.com/tomahawk-player/tomahawk.git
synced 2025-08-08 07:07:05 +02:00
fix crash on closing account config dialog
This commit is contained in:
@@ -53,7 +53,6 @@ XmppAccount::XmppAccount( const QString &accountId )
|
|||||||
|
|
||||||
XmppAccount::~XmppAccount()
|
XmppAccount::~XmppAccount()
|
||||||
{
|
{
|
||||||
delete m_configWidget.data();
|
|
||||||
delete m_xmppSipPlugin.data();
|
delete m_xmppSipPlugin.data();
|
||||||
}
|
}
|
||||||
|
|
||||||
|
@@ -22,6 +22,7 @@
|
|||||||
#include <QDialogButtonBox>
|
#include <QDialogButtonBox>
|
||||||
#include <QVBoxLayout>
|
#include <QVBoxLayout>
|
||||||
#include <QPushButton>
|
#include <QPushButton>
|
||||||
|
#include <QDebug>
|
||||||
|
|
||||||
class DelegateConfigWrapper : public QDialog
|
class DelegateConfigWrapper : public QDialog
|
||||||
{
|
{
|
||||||
@@ -33,7 +34,6 @@ public:
|
|||||||
#ifdef Q_WS_MAC
|
#ifdef Q_WS_MAC
|
||||||
m_widget->setVisible( true );
|
m_widget->setVisible( true );
|
||||||
#endif
|
#endif
|
||||||
|
|
||||||
setWindowTitle( title );
|
setWindowTitle( title );
|
||||||
QVBoxLayout* v = new QVBoxLayout( this );
|
QVBoxLayout* v = new QVBoxLayout( this );
|
||||||
v->setContentsMargins( 0, 0, 0, 0 );
|
v->setContentsMargins( 0, 0, 0, 0 );
|
||||||
@@ -59,6 +59,9 @@ public:
|
|||||||
#endif
|
#endif
|
||||||
|
|
||||||
}
|
}
|
||||||
|
|
||||||
|
~DelegateConfigWrapper() { delete m_widget; }
|
||||||
|
|
||||||
public slots:
|
public slots:
|
||||||
void toggleOkButton( bool dataError )
|
void toggleOkButton( bool dataError )
|
||||||
{
|
{
|
||||||
|
@@ -748,7 +748,8 @@ SettingsDialog::handleAccountAdded( Account* account, bool added )
|
|||||||
}
|
}
|
||||||
}
|
}
|
||||||
else
|
else
|
||||||
{ // user pressed cancel
|
{
|
||||||
|
// user pressed cancel
|
||||||
delete account;
|
delete account;
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
Reference in New Issue
Block a user