diff --git a/src/AccountFactoryWrapper.cpp b/src/AccountFactoryWrapper.cpp
index 0bf60f634..f5f270b06 100644
--- a/src/AccountFactoryWrapper.cpp
+++ b/src/AccountFactoryWrapper.cpp
@@ -141,7 +141,6 @@ AccountFactoryWrapper::buttonClicked( QAbstractButton* button )
{
m_createAccount = true;
emit createAccount( m_factory );
-// accept();
return;
}
else
diff --git a/src/libtomahawk/accounts/LastFmConfig.ui b/src/libtomahawk/accounts/LastFmConfig.ui
index c0a0ece12..5cdf0e5e8 100644
--- a/src/libtomahawk/accounts/LastFmConfig.ui
+++ b/src/libtomahawk/accounts/LastFmConfig.ui
@@ -7,13 +7,16 @@
0
0
400
- 178
+ 220
Form
+
+ 4
+
-
diff --git a/src/settingsdialog.cpp b/src/settingsdialog.cpp
index bcd2c997b..ddd954efa 100644
--- a/src/settingsdialog.cpp
+++ b/src/settingsdialog.cpp
@@ -437,6 +437,13 @@ SettingsDialog::openAccountFactoryConfig( AccountFactory* factory )
void
SettingsDialog::createAccountFromFactory( AccountFactory* factory )
{
+#ifdef Q_WS_MAC
+ // On mac we need to close the dialog we came from before showing another dialog
+ Q_ASSERT( sender() && qobject_cast< AccountFactoryWrapper* >( sender() ) );
+ AccountFactoryWrapper* dialog = qobject_cast< AccountFactoryWrapper* >( sender() );
+ dialog->accept();
+#endif
+
//if exited with OK, create it, if not, delete it immediately!
Account* account = factory->createAccount();
bool added = false;