[prev in list] [next in list] [prev in thread] [next in thread]
List: kde-commits
Subject: KDE_3_1_BRANCH: kdelibs/kdeui
From: Dave Corrie <kde () davecorrie ! com>
Date: 2003-02-23 10:59:41
[Download RAW message or body]
CVS commit by davec:
Prevent separators from appearing at the top of menus
M +5 -2 kxmlguibuilder.cpp 1.58.2.2
--- kdelibs/kdeui/kxmlguibuilder.cpp #1.58.2.1:1.58.2.2
@@ -315,5 +315,8 @@ int KXMLGUIBuilder::createCustomElement(
}
}
-
+ // Don't insert a separator at the top of the menu
+ if(count == 0)
+ return 0;
+ else
return menu->insertSeparator( index );
}
[prev in list] [next in list] [prev in thread] [next in thread]
Configure |
About |
News |
Add a list |
Sponsored by KoreLogic