Welcome to mirror list, hosted at ThFree Co, Russian Federation.

github.com/owncloud/client.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorHannah von Reth <hannah.vonreth@owncloud.com>2020-06-29 15:52:44 +0300
committerHannah von Reth <vonreth@kde.org>2020-06-29 17:05:08 +0300
commit2a3c916bd737ae7491d302e898f0a2801d515e8f (patch)
treeb72072ad65d0f4126e878fbcd104786d4da476dd /src/gui/creds
parent67bae38335da7dd379d725044c4286e49f665f92 (diff)
Make the password dialog modal
Fixes: #7833
Diffstat (limited to 'src/gui/creds')
-rw-r--r--src/gui/creds/httpcredentialsgui.cpp22
1 files changed, 13 insertions, 9 deletions
diff --git a/src/gui/creds/httpcredentialsgui.cpp b/src/gui/creds/httpcredentialsgui.cpp
index 3bff57ba8..0de59330a 100644
--- a/src/gui/creds/httpcredentialsgui.cpp
+++ b/src/gui/creds/httpcredentialsgui.cpp
@@ -13,18 +13,22 @@
* for more details.
*/
+#include "application.h"
+#include "account.h"
+#include "common/asserts.h"
+#include "creds/httpcredentialsgui.h"
+#include "networkjobs.h"
+#include "settingsdialog.h"
+#include "theme.h"
+
+#include <QBuffer>
+#include <QDesktopServices>
#include <QInputDialog>
#include <QLabel>
-#include <QDesktopServices>
+#include <QMessageBox>
#include <QNetworkReply>
#include <QTimer>
-#include <QBuffer>
-#include "creds/httpcredentialsgui.h"
-#include "theme.h"
-#include "account.h"
-#include "networkjobs.h"
-#include <QMessageBox>
-#include "common/asserts.h"
+
using namespace QKeychain;
@@ -113,7 +117,7 @@ void HttpCredentialsGui::showDialog()
+ QLatin1String("<br>");
}
- QInputDialog *dialog = new QInputDialog();
+ QInputDialog *dialog = new QInputDialog(qobject_cast<Application *>(qApp)->gui()->settingsDialog());
dialog->setAttribute(Qt::WA_DeleteOnClose, true);
dialog->setWindowTitle(tr("Enter Password"));
dialog->setLabelText(msg);