Skip to content

Commit

Permalink
Make the password dialog modal
Browse files Browse the repository at this point in the history
  • Loading branch information
TheOneRing committed Jun 29, 2020
1 parent b3c0988 commit de44af3
Show file tree
Hide file tree
Showing 2 changed files with 18 additions and 9 deletions.
5 changes: 5 additions & 0 deletions changelog/unreleased/7833
Original file line number Diff line number Diff line change
@@ -0,0 +1,5 @@
Change: The password dialog is hidden behind a window

We changed the password dialog to stay on top of the ownCloud window.

https://github.com/owncloud/client/issues/7833
22 changes: 13 additions & 9 deletions src/gui/creds/httpcredentialsgui.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -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;

Expand Down Expand Up @@ -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);
Expand Down

0 comments on commit de44af3

Please sign in to comment.