[Author Prev][Author Next][Thread Prev][Thread Next][Author Index][Thread Index]

[vidalia-svn] r1924: If startItem is null, then we don't know where to start sear (trunk/src/gui/help/browser)



Author: edmanm
Date: 2007-09-14 23:00:43 -0400 (Fri, 14 Sep 2007)
New Revision: 1924

Modified:
   trunk/src/gui/help/browser/helpbrowser.cpp
Log:
If startItem is null, then we don't know where to start searching. Found by
Tarek Tag. This should really only ever happen when one messes up one's build,
though.


Modified: trunk/src/gui/help/browser/helpbrowser.cpp
===================================================================
--- trunk/src/gui/help/browser/helpbrowser.cpp	2007-09-13 15:39:13 UTC (rev 1923)
+++ trunk/src/gui/help/browser/helpbrowser.cpp	2007-09-15 03:00:43 UTC (rev 1924)
@@ -267,6 +267,10 @@
 QTreeWidgetItem*
 HelpBrowser::findTopicItem(QTreeWidgetItem *startItem, QString topic)
 {
+  /* If startItem is null, then we don't know where to start searching. */
+  if (!startItem)
+    return 0;
+
   /* Parse the first subtopic in the topic id. */
   QString subtopic = topic.mid(0, topic.indexOf(".")).toLower();