summaryrefslogtreecommitdiff
path: root/core
Unidiff
Diffstat (limited to 'core') (more/less context) (ignore whitespace changes)
-rw-r--r--core/apps/helpbrowser/helpbrowser.cpp1
-rw-r--r--core/apps/helpbrowser/magictextbrowser.cpp11
2 files changed, 9 insertions, 3 deletions
diff --git a/core/apps/helpbrowser/helpbrowser.cpp b/core/apps/helpbrowser/helpbrowser.cpp
index cbb4059..4bd9565 100644
--- a/core/apps/helpbrowser/helpbrowser.cpp
+++ b/core/apps/helpbrowser/helpbrowser.cpp
@@ -120,3 +120,2 @@ void HelpBrowser::appMessage(const QCString& msg, const QByteArray& data)
120{ 120{
121 odebug << "reached appMessage" << oendl;
122 if ( msg == "showFile(QString)" ) { 121 if ( msg == "showFile(QString)" ) {
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 {
85 QString icon = lnk->icon(); 85 QString icon = lnk->icon();
86 QString helpFile = lnk->exec()+".html"; 86 QString exec = lnk->exec();
87 QString helpFile = exec+".html";
87 QStringList helpPath = Global::helpPath(); 88 QStringList helpPath = Global::helpPath();
88 bool helpExists = FALSE; 89 bool helpExists = FALSE;
89 for (QStringList::ConstIterator it=helpPath.begin(); it!=helpPath.end() && !helpExists; ++it) 90 for (QStringList::ConstIterator it=helpPath.begin(); it!=helpPath.end() && !helpExists; ++it) {
90 helpExists = QFile::exists( *it + "/" + helpFile ); 91 helpExists = QFile::exists( *it + "/" + helpFile );
92
93 if( !helpExists && QFile::exists( *it + "/" + exec + "/" + helpFile ) ) {
94 helpFile = exec + "/" + helpFile;
95 helpExists = true;
96 }
97 }
91 98