From 596a088b27447de3e67eece0fb5301119d9f0326 Mon Sep 17 00:00:00 2001 From: Friedemann Kleint Date: Mon, 24 Mar 2014 11:25:57 +0100 Subject: [PATCH] Fix broken navigation in assistant with no webkit. Broken by 1ebfb744fedf0f9168290da05932079adcc2c536 . Only printRequested() should be excluded. Change-Id: I3c94aa62c469fc0cf32b7cbc8740aee3aeead6c2 Reviewed-by: Mitch Curtis --- src/assistant/assistant/centralwidget.cpp | 6 ++---- 1 file changed, 2 insertions(+), 4 deletions(-) diff --git a/src/assistant/assistant/centralwidget.cpp b/src/assistant/assistant/centralwidget.cpp index a1dccc6..5b62f64 100644 --- a/src/assistant/assistant/centralwidget.cpp +++ b/src/assistant/assistant/centralwidget.cpp @@ -616,6 +616,8 @@ void CentralWidget::connectSignals(HelpViewer *page) { TRACE_OBJ #if !defined(QT_NO_WEBKIT) + connect(page, SIGNAL(printRequested()), this, SLOT(print())); +#endif connect(page, SIGNAL(copyAvailable(bool)), this, SIGNAL(copyAvailable(bool))); connect(page, SIGNAL(forwardAvailable(bool)), this, @@ -624,11 +626,7 @@ void CentralWidget::connectSignals(HelpViewer *page) SIGNAL(backwardAvailable(bool))); connect(page, SIGNAL(sourceChanged(QUrl)), this, SLOT(handleSourceChanged(QUrl))); - connect(page, SIGNAL(printRequested()), this, SLOT(print())); connect(page, SIGNAL(highlighted(QString)), this, SLOT(slotHighlighted(QString))); -#else - Q_UNUSED(page) -#endif } bool CentralWidget::eventFilter(QObject *object, QEvent *e) -- 2.7.4