#include <QLabel>
#include "theme.h"
+#include "application.h"
+#include "owncloudgui.h"
#include "wizard/owncloudwizardcommon.h"
#include "wizard/webview.h"
#include "wizard/flow2authwidget.h"
connect(_webView, &WebView::urlCatched, this, &WebFlowCredentialsDialog::urlCatched);
}
+ auto app = static_cast<Application *>(qApp);
+ connect(app, &Application::isShowingSettingsDialog, this, &WebFlowCredentialsDialog::slotShowSettingsDialog);
+
_errorLabel = new QLabel();
_errorLabel->hide();
_layout->addWidget(_errorLabel);
}
}
+void WebFlowCredentialsDialog::slotShowSettingsDialog()
+{
+ // bring window to top but slightly delay, to avoid being hidden behind the SettingsDialog
+ QTimer::singleShot(100, this, [this] {
+ ownCloudGui::raiseDialog(this);
+ });
+}
+
}
protected:
void closeEvent(QCloseEvent * e) override;
+public slots:
+ void slotShowSettingsDialog();
+
signals:
void urlCatched(const QString user, const QString pass, const QString host);