+
+ // delete the last menu item which is unused now
+ menu->Delete(wxID_FILE1 + m_fileHistoryN - 1);
+
+ // unfortunately, we can't delete separator (there is no function to
+ // delete item by position, only by id - and what if there are several
+ // separators in this menu?) - so we will be always left with at least
+ // one and, even worse, we will add another one if this was the last
+ // file... (FIXME)