From 4a623a9afe68f8d2d2f9562cb5ab589c0023519c Mon Sep 17 00:00:00 2001 From: zecke Date: Sat, 16 Oct 2004 22:31:18 +0000 Subject: -Remove debug output on appMessage -Check for Application Pages in help/lang/execname/execname.html as well. This is needed for qashmoney and could be used for the other help pages as well --- (limited to 'core/apps/helpbrowser/magictextbrowser.cpp') 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 @@ -83,11 +83,18 @@ QString MagicTextBrowser::generateQpe(const QString& name) const { for (QListIterator it(lnkset.children()); (lnk=it.current()); ++it) { QString name = lnk->name(); 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; + } + } if ( helpExists ) { r += "

"+name+"

\n"; -- cgit v0.9.0.2