summaryrefslogtreecommitdiffstats
path: root/tools/assistant/tools/assistant/centralwidget.cpp
diff options
context:
space:
mode:
Diffstat (limited to 'tools/assistant/tools/assistant/centralwidget.cpp')
-rw-r--r--tools/assistant/tools/assistant/centralwidget.cpp4
1 files changed, 4 insertions, 0 deletions
diff --git a/tools/assistant/tools/assistant/centralwidget.cpp b/tools/assistant/tools/assistant/centralwidget.cpp
index 1b0e6712ff..633747af02 100644
--- a/tools/assistant/tools/assistant/centralwidget.cpp
+++ b/tools/assistant/tools/assistant/centralwidget.cpp
@@ -277,7 +277,11 @@ CentralWidget *CentralWidget::instance()
void CentralWidget::newTab()
{
HelpViewer* viewer = currentHelpViewer();
+#if !defined(QT_NO_WEBKIT)
+ if (viewer && viewer->hasLoadFinished())
+#else
if (viewer)
+#endif
setSourceInNewTab(viewer->source());
}