Commit be38c9b4 authored by Friedemann Kleint's avatar Friedemann Kleint
Browse files

Fixes: Prevent help view from accepting file manager drops

RevBy: Eike
parent 11cbfbda
...@@ -167,7 +167,7 @@ private: ...@@ -167,7 +167,7 @@ private:
HelpPage::HelpPage(CentralWidget *central, QHelpEngine *engine, QObject *parent) HelpPage::HelpPage(CentralWidget *central, QHelpEngine *engine, QObject *parent)
: QWebPage(parent), centralWidget(central), helpEngine(engine) : QWebPage(parent), centralWidget(central), helpEngine(engine)
{ {
} }
QWebPage *HelpPage::createWindow(QWebPage::WebWindowType) QWebPage *HelpPage::createWindow(QWebPage::WebWindowType)
...@@ -215,7 +215,7 @@ bool HelpPage::acceptNavigationRequest(QWebFrame *, ...@@ -215,7 +215,7 @@ bool HelpPage::acceptNavigationRequest(QWebFrame *,
HelpViewer::HelpViewer(QHelpEngine *engine, CentralWidget *parent) HelpViewer::HelpViewer(QHelpEngine *engine, CentralWidget *parent)
: QWebView(parent), helpEngine(engine), parentWidget(parent) : QWebView(parent), helpEngine(engine), parentWidget(parent)
{ {
setPage(new HelpPage(parent, helpEngine, this)); setPage(new HelpPage(parent, helpEngine, this));
page()->setNetworkAccessManager(new HelpNetworkAccessManager(engine, this)); page()->setNetworkAccessManager(new HelpNetworkAccessManager(engine, this));
...@@ -238,6 +238,7 @@ HelpViewer::HelpViewer(QHelpEngine *engine, CentralWidget *parent) ...@@ -238,6 +238,7 @@ HelpViewer::HelpViewer(QHelpEngine *engine, CentralWidget *parent)
connect(page(), SIGNAL(linkHovered(QString, QString, QString)), this, connect(page(), SIGNAL(linkHovered(QString, QString, QString)), this,
SIGNAL(highlighted(QString))); SIGNAL(highlighted(QString)));
connect(this, SIGNAL(urlChanged(QUrl)), this, SIGNAL(sourceChanged(QUrl))); connect(this, SIGNAL(urlChanged(QUrl)), this, SIGNAL(sourceChanged(QUrl)));
setAcceptDrops(false);
} }
void HelpViewer::setSource(const QUrl &url) void HelpViewer::setSource(const QUrl &url)
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment