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 | 41 | void OAuthWebViewHandler::displayWebviewForAuthorizationURL(const QUrl& authorizationURL) { |
| 42 | 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 | 46 | _activeWebView->setWindowFlags(Qt::WindowStaysOnTopHint); |
| 47 | + _activeWebView->setAttribute(Qt::WA_DeleteOnClose); | |
| 45 | 48 | |
| 46 | 49 | qDebug() << "Displaying QWebView for OAuth authorization at" << authorizationURL.toString(); |
| 47 | 50 | _activeWebView->load(authorizationURL); |