[prev in list] [next in list] [prev in thread] [next in thread] 

List:       kde-commits
Subject:    KDE/kdelibs/kdoctools
From:       Burkhard Lück <lueck () hube-lueck ! de>
Date:       2010-09-08 7:57:28
Message-ID: 20100908080128.361F0AC857 () svn ! kde ! org
[Download RAW message or body]

SVN commit 1172905 by lueck:

More user friendly error handling if a requested help docbook was not found:
try to load a docbook khelpcenter/documentationnotfound with help + infos to solve this issue

 M  +13 -0     kio_help.cpp  


--- trunk/KDE/kdelibs/kdoctools/kio_help.cpp #1172904:1172905
@@ -135,9 +135,22 @@
 	}
         else
 	{
+            const QString documentationNotFound = "khelpcenter/documentationnotfound/index.html";
+            if (!langLookup(documentationNotFound).isEmpty())
+            {
+                KUrl red;
+                red.setProtocol("help");
+                red.setPath(documentationNotFound);
+                red.setQuery(query);
+                redirection(red);
+                redirect = true;
+            }
+            else
+            {
 	    unicodeError( i18n("There is no documentation available for %1." , Qt::escape(path)) );
             return QString();
 	}
+        }
     } else
         kDebug( 7119 ) << "result " << result;
 
[prev in list] [next in list] [prev in thread] [next in thread] 

Configure | About | News | Add a list | Sponsored by KoreLogic