fixed bug where notes and tasks button appear in helpmenu, when no bookmarks menu is present

git-svn-id: http://svn.igniterealtime.org/svn/repos/spark/trunk@12302 b35dd754-fafc-0310-a699-88a17e54d16e
This commit is contained in:
Wolf Posdorfer
2011-04-28 19:42:23 +00:00
committed by wolf.posdorfer
parent 248a778b98
commit d0c67b956c

View File

@ -148,7 +148,7 @@ public class ScratchPadPlugin implements Plugin {
// Add To toolbar
JMenuBar menubar = SparkManager.getMainWindow().getMenu();
JMenu menu = menubar.getMenu(3);
JMenu menu = menubar.getMenu(menubar.getMenuCount()-2);
menu.add(taskMenu);
menu.add(notesMenu);