aboutsummaryrefslogtreecommitdiffstats
path: root/src/shared/help/indexwindow.cpp
diff options
context:
space:
mode:
authorkh1 <[email protected]>2010-07-14 13:36:23 +0200
committerkh1 <[email protected]>2010-07-14 13:37:20 +0200
commit6e0544a9f58e172920e7c62cac5b56de8d5bb2cd (patch)
tree91c0fdfa953c24aff0ffa5dbe9ae9abb8992df56 /src/shared/help/indexwindow.cpp
parent3809327a68a27e9b941888525afe0fd3abd2b952 (diff)
Sync against Assistant
Reviewed-by: ck
Diffstat (limited to 'src/shared/help/indexwindow.cpp')
-rw-r--r--src/shared/help/indexwindow.cpp5
1 files changed, 3 insertions, 2 deletions
diff --git a/src/shared/help/indexwindow.cpp b/src/shared/help/indexwindow.cpp
index b12d517c6d3..d58188b3f13 100644
--- a/src/shared/help/indexwindow.cpp
+++ b/src/shared/help/indexwindow.cpp
@@ -30,6 +30,7 @@
#include "centralwidget.h"
#include "helpmanager.h"
+#include "helpviewer.h"
#include "indexwindow.h"
#include "openpagesmanager.h"
#include "topicchooser.h"
@@ -209,8 +210,8 @@ void IndexWindow::open(QHelpIndexWidget* indexWidget, const QModelIndex &index)
return;
}
- if (url.path().endsWith(QLatin1String(".pdf"), Qt::CaseInsensitive))
- Help::Internal::CentralWidget::instance()->setSource(url);
+ if (!HelpViewer::canOpenPage(url.path()))
+ CentralWidget::instance()->setSource(url);
else
OpenPagesManager::instance().createPage(url);
}