Showing the changes to interface/src/ui/OAuthWebViewHandler.cpp (1 of 3 files). Show all
Unified · Split
| @@ -40,8 +40,11 @@ void OAuthWebViewHandler::addHighFidelityRootCAToSSLConfig() { · 39 unmodified lines | |||
| 40 | 40 | ||
| 41 | void OAuthWebViewHandler::displayWebviewForAuthorizationURL(const QUrl& authorizationURL) { | 41 | void OAuthWebViewHandler::displayWebviewForAuthorizationURL(const QUrl& authorizationURL) { |
| 42 | if (!_activeWebView) { | 42 | if (!_activeWebView) { |
| 43 | _activeWebView = new QWebView(); | 43 | _activeWebView = new QWebView; |
| 44 | |||
| 45 | // keep the window on top and delete it when it closes | ||
| 44 | _activeWebView->setWindowFlags(Qt::WindowStaysOnTopHint); | 46 | _activeWebView->setWindowFlags(Qt::WindowStaysOnTopHint); |
| 47 | _activeWebView->setAttribute(Qt::WA_DeleteOnClose); | ||
| 45 | 48 | ||
| 46 | qDebug() << "Displaying QWebView for OAuth authorization at" << authorizationURL.toString(); | 49 | qDebug() << "Displaying QWebView for OAuth authorization at" << authorizationURL.toString(); |
| 47 | _activeWebView->load(authorizationURL); | 50 | _activeWebView->load(authorizationURL); |