mirror of
https://github.com/tomahawk-player/tomahawk.git
synced 2025-03-18 23:09:42 +01:00
fix deleting
This commit is contained in:
parent
9ab47d769b
commit
7bae6c6b8a
@ -89,7 +89,7 @@ public slots:
|
||||
else if ( b == m_deleteButton )
|
||||
{
|
||||
m_deleted = true;
|
||||
emit deleted();
|
||||
emit closedWithDelete();
|
||||
reject();
|
||||
}
|
||||
else
|
||||
|
@ -444,7 +444,7 @@ SettingsDialog::openAccountConfig( Account* account, bool showDelete )
|
||||
{
|
||||
if( account->configurationWidget() )
|
||||
{
|
||||
#ifndef Q_WS_MAC
|
||||
#if 0
|
||||
DelegateConfigWrapper dialog( account->configurationWidget(), QString("%1 Configuration" ).arg( account->accountFriendlyName() ), this );
|
||||
dialog.setShowDelete( showDelete );
|
||||
QWeakPointer< DelegateConfigWrapper > watcher( &dialog );
|
||||
@ -491,8 +491,6 @@ SettingsDialog::accountConfigDelete()
|
||||
Account* account = qobject_cast< Account* >( dialog->property( "accountplugin" ).value< QObject* >() );
|
||||
Q_ASSERT( account );
|
||||
AccountManager::instance()->removeAccount( account );
|
||||
|
||||
sender()->deleteLater();
|
||||
}
|
||||
|
||||
|
||||
|
Loading…
x
Reference in New Issue
Block a user