Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with
or
.
Download ZIP
Browse files

MythUIWebBrowser: Add a MythWebView::createWindow() function.

Currently this just reuses the current WebView rather than creating a new one.
This keeps those annoying web pages that insist on opening a page in a new
window and freak out when they can't do it happy.
  • Loading branch information...
commit acdc36517757501d74ba2430a7566717afe4df48 1 parent f84f268
Paul Harrison authored
View
7 mythtv/libs/libmythui/mythuiwebbrowser.cpp
@@ -524,6 +524,13 @@ bool MythWebView::isVideoFile(const QString &extension)
return list.contains(extension, Qt::CaseInsensitive);
}
+QWebView *MythWebView::createWindow(QWebPage::WebWindowType type)
+{
+ (void) type;
+ return (QWebView*) this;
+}
+
+
/**
* \class MythUIWebBrowser
* \brief Provide a web browser widget.
View
1  mythtv/libs/libmythui/mythuiwebbrowser.h
@@ -68,6 +68,7 @@ class MythWebView : public QWebView
protected slots:
void handleUnsupportedContent(QNetworkReply *reply);
void handleDownloadRequested(const QNetworkRequest &request);
+ QWebView *createWindow(QWebPage::WebWindowType type);
private:
void showDownloadMenu(void);
Please sign in to comment.
Something went wrong with that request. Please try again.