$OpenBSD: patch-source_linux_MQBookmarkBrowser_cc,v 1.1 2006/06/14 12:23:49 bernd Exp $

Fixes a segfault on startup.
Discussed here: http://bugs.mysql.com/bug.php?id=18428
Fix from Debian package.

--- source/linux/MQBookmarkBrowser.cc.orig	Tue Jun 13 11:12:05 2006
+++ source/linux/MQBookmarkBrowser.cc	Tue Jun 13 11:13:31 2006
@@ -257,7 +257,8 @@ void MQBookmarkBrowser::bookmark_select(
   {
     for (unsigned int i=0; i < _menu.items().size(); i++)
       _menu.items()[i].set_sensitive(false);
-    _menu.items()[3].set_sensitive(true); // New Folder
+    if( _menu.items().size() > 3 )
+      _menu.items()[3].set_sensitive(true); // New Folder
   }
 }
 
