Revision: 3204
          http://skim-app.svn.sourceforge.net/skim-app/?rev=3204&view=rev
Author:   hofman
Date:     2007-11-13 12:03:58 -0800 (Tue, 13 Nov 2007)

Log Message:
-----------
Remove a separator at the end of the windows menu.

Modified Paths:
--------------
    trunk/SKApplication.m

Modified: trunk/SKApplication.m
===================================================================
--- trunk/SKApplication.m       2007-11-13 19:50:19 UTC (rev 3203)
+++ trunk/SKApplication.m       2007-11-13 20:03:58 UTC (rev 3204)
@@ -174,7 +174,8 @@
                 [windowsMenu removeItemAtIndex:itemIndex];
                 if (nextIndex > itemIndex)
                     nextIndex--;
-                if (itemIndex < [windowsMenu numberOfItems] && itemIndex > 0 
&& [[windowsMenu itemAtIndex:itemIndex] isSeparatorItem] && [[windowsMenu 
itemAtIndex:itemIndex - 1] isSeparatorItem]) {
+                if (itemIndex < [windowsMenu numberOfItems] && [[windowsMenu 
itemAtIndex:itemIndex] isSeparatorItem] && 
+                    (itemIndex == [windowsMenu numberOfItems] - 1 || 
(itemIndex > 0 && [[windowsMenu itemAtIndex:itemIndex - 1] isSeparatorItem]))) {
                     [windowsMenu removeItemAtIndex:itemIndex];
                     if (nextIndex > itemIndex)
                         nextIndex--;


This was sent by the SourceForge.net collaborative development platform, the 
world's largest Open Source development site.

-------------------------------------------------------------------------
This SF.net email is sponsored by: Splunk Inc.
Still grepping through log files to find problems?  Stop.
Now Search log events and configuration files using AJAX and a browser.
Download your FREE copy of Splunk now >> http://get.splunk.com/
_______________________________________________
Skim-app-commit mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/skim-app-commit

Reply via email to