summaryrefslogtreecommitdiff
path: root/core/apps/helpbrowser/magictextbrowser.cpp
Side-by-side diff
Diffstat (limited to 'core/apps/helpbrowser/magictextbrowser.cpp') (more/less context) (ignore whitespace changes)
-rw-r--r--core/apps/helpbrowser/magictextbrowser.cpp11
1 files changed, 9 insertions, 2 deletions
diff --git a/core/apps/helpbrowser/magictextbrowser.cpp b/core/apps/helpbrowser/magictextbrowser.cpp
index 80495c9..44bf19f 100644
--- a/core/apps/helpbrowser/magictextbrowser.cpp
+++ b/core/apps/helpbrowser/magictextbrowser.cpp
@@ -85,7 +85,14 @@ QString MagicTextBrowser::generateQpe(const QString& name) const {
QString icon = lnk->icon();
- QString helpFile = lnk->exec()+".html";
+ QString exec = lnk->exec();
+ QString helpFile = exec+".html";
QStringList helpPath = Global::helpPath();
bool helpExists = FALSE;
- for (QStringList::ConstIterator it=helpPath.begin(); it!=helpPath.end() && !helpExists; ++it)
+ for (QStringList::ConstIterator it=helpPath.begin(); it!=helpPath.end() && !helpExists; ++it) {
helpExists = QFile::exists( *it + "/" + helpFile );
+
+ if( !helpExists && QFile::exists( *it + "/" + exec + "/" + helpFile ) ) {
+ helpFile = exec + "/" + helpFile;
+ helpExists = true;
+ }
+ }