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
4040
4141 void OAuthWebViewHandler::displayWebviewForAuthorizationURL(const QUrl& authorizationURL) {
4242 if (!_activeWebView) {
43− _activeWebView = new QWebView();
43+ _activeWebView = new QWebView;
44+
45+ // keep the window on top and delete it when it closes
4446 _activeWebView->setWindowFlags(Qt::WindowStaysOnTopHint);
47+ _activeWebView->setAttribute(Qt::WA_DeleteOnClose);
4548
4649 qDebug() << "Displaying QWebView for OAuth authorization at" << authorizationURL.toString();
4750 _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