forked from qt-creator/qt-creator
Help: Fix funny blank page when opening same URL again
For some reason the load() calls in the nested HelpViewer::setSource calls lead to even more nesting because webkit decides to cancel loading inbetween...... so we make the side bar viewer synchronization async on the event loop. Task-number: QTCREATORBUG-12742 Change-Id: I276272af7c477d627638e9611a34e80cca945b21 Reviewed-by: Robert Loehning <robert.loehning@digia.com> Reviewed-by: Christian Stenger <christian.stenger@digia.com>
This commit is contained in:
@@ -59,7 +59,8 @@ public:
|
||||
virtual QString title() const = 0;
|
||||
|
||||
virtual QUrl source() const = 0;
|
||||
virtual void setSource(const QUrl &url) = 0;
|
||||
// metacall in HelpPlugin::updateSideBarSource
|
||||
Q_INVOKABLE virtual void setSource(const QUrl &url) = 0;
|
||||
virtual void scrollToAnchor(const QString &anchor) = 0;
|
||||
virtual void highlightId(const QString &id) { Q_UNUSED(id) }
|
||||
|
||||
|
||||
Reference in New Issue
Block a user