History

handle cleanup of OAuth web view when force closed

Stephen Birarda committed 12 years ago

Commit ca214811 parent 7d3157b3 files · +14 −10Browse files

Showing the changes to interface/src/ui/OAuthWebViewHandler.cpp (1 of 3 files). Show all

Unified · Split

interface/src/ui/OAuthWebViewHandler.cpp+4−1
@@ -40,8 +40,11 @@ void OAuthWebViewHandler::addHighFidelityRootCAToSSLConfig() { · 39 unmodified lines
40 40
41void OAuthWebViewHandler::displayWebviewForAuthorizationURL(const QUrl& authorizationURL) {41void 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);

Keyboard shortcuts

General

Show keyboard shortcuts
?
Focus the current search
/

Issues and pull requests

Open filters
f

Issues, pull requests and Inbox

Select next item
j↓
Select previous item
k↑
Open selected item
Enter
Dismiss filters or clear selection
Esc

Repository code

Go to file
t