1
0
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:
Leo Franchi 2012-02-10 18:45:28 -05:00
parent 9ab47d769b
commit 7bae6c6b8a
2 changed files with 2 additions and 4 deletions

View File

@ -89,7 +89,7 @@ public slots:
else if ( b == m_deleteButton )
{
m_deleted = true;
emit deleted();
emit closedWithDelete();
reject();
}
else

View File

@ -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();
}