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

List:       kde-commits
Subject:    KDE/kdebase/runtime/kioslave/man
From:       Martin Koller <kollix () aon ! at>
Date:       2011-01-03 18:47:47
Message-ID: 20110103184748.020CAAC8AE () svn ! kde ! org
[Download RAW message or body]

SVN commit 1211341 by mkoller:

BUG: 207164  do not crash when no single man page for a section index is found


 M  +11 -0     kio_man.cpp  


--- trunk/KDE/kdebase/runtime/kioslave/man/kio_man.cpp #1211340:1211341
@@ -1230,6 +1230,17 @@
     // search for the man pages
 	QStringList pages = findPages( section, QString() );
 
+    if ( pages.count() == 0 )  // not a single page found
+    {
+      // print footer
+      os << "</div></body></html>" << endl;
+
+      infoMessage(QString());
+      data(array);
+      finished();
+      return;
+    }
+
 	QMap<QString, QString> indexmap = buildIndexMap(section);
 
     // print out the list
[prev in list] [next in list] [prev in thread] [next in thread] 

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