Commit d3ecae6f authored by Martin Klapetek's avatar Martin Klapetek

Reorder the logic that displays the plugin UIs a bit

parent 8b44623d
......@@ -110,15 +110,10 @@ void CreateAccount::loadPluginAndShowDialog(const QString &pluginName)
}
connect(ui, &KAccountsUiPlugin::success, this, &CreateAccount::pluginFinished, Qt::UniqueConnection);
connect(ui, &KAccountsUiPlugin::error, this, &CreateAccount::pluginError, Qt::UniqueConnection);
ui->init(KAccountsUiPlugin::NewAccountDialog);
// When the plugin has finished building the UI, show it right away
connect(ui, &KAccountsUiPlugin::uiReady, ui, &KAccountsUiPlugin::showNewAccountDialog, Qt::UniqueConnection);
ui->setProviderName(m_providerName);
ui->init(KAccountsUiPlugin::NewAccountDialog);
}
void CreateAccount::pluginFinished(const QString &screenName, const QString &secret, const QVariantMap &/*data*/)
......
......@@ -89,6 +89,9 @@ void UiPluginsManagerPrivate::loadPlugins()
qDebug() << "Adding plugin" << ui << fileName;
// When the plugin has finished building the UI, show it right away
QObject::connect(ui, &KAccountsUiPlugin::uiReady, ui, &KAccountsUiPlugin::showNewAccountDialog, Qt::UniqueConnection);
pluginsForNames.insert(fileName, ui);
Q_FOREACH (const QString &service, ui->supportedServicesForConfig()) {
qDebug() << " Adding service" << service;
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment