while (node)
{
wxMenu* menu = (wxMenu*) node->GetData();
- if (m_fileHistoryN == 0)
+ if ( m_fileHistoryN == 0 && menu->GetMenuItemCount() )
+ {
menu->AppendSeparator();
+ }
menu->Append(wxID_FILE1+m_fileHistoryN, _("[EMPTY]"));
node = node->GetNext();
}
while (node)
{
wxMenu* menu = (wxMenu*) node->GetData();
- menu->AppendSeparator();
+ if (menu->GetMenuItemCount())
+ {
+ menu->AppendSeparator();
+ }
+
int i;
for (i = 0; i < m_fileHistoryN; i++)
{
{
if (m_fileHistoryN > 0)
{
- menu->AppendSeparator();
+ if (menu->GetMenuItemCount())
+ {
+ menu->AppendSeparator();
+ }
+
int i;
for (i = 0; i < m_fileHistoryN; i++)
{