mirror of https://github.com/PCSX2/pcsx2.git
Get rid of some irritating warnings in Linux.
git-svn-id: http://pcsx2.googlecode.com/svn/trunk@5037 96395faa-99c1-11dd-bbfe-3dabce05a288
This commit is contained in:
parent
5325f9b490
commit
bffde4fd5e
|
@ -121,6 +121,9 @@ void RecentIsoManager::Repopulate()
|
||||||
|
|
||||||
m_Separator = m_Menu->AppendSeparator();
|
m_Separator = m_Menu->AppendSeparator();
|
||||||
|
|
||||||
|
// The following line is important
|
||||||
|
m_Menu->Remove( m_Menu->Append( -1, wxEmptyString ) );
|
||||||
|
|
||||||
//Note: the internal recent iso list (m_Items) has the most recent item last (also at the INI file)
|
//Note: the internal recent iso list (m_Items) has the most recent item last (also at the INI file)
|
||||||
// but the menu is composed in reverse order such that the most recent item appears at the top.
|
// but the menu is composed in reverse order such that the most recent item appears at the top.
|
||||||
for( int i=cnt-1; i>=0; --i )
|
for( int i=cnt-1; i>=0; --i )
|
||||||
|
@ -176,7 +179,7 @@ void RecentIsoManager::InsertIntoMenu( int id )
|
||||||
if (this->m_firstIdForMenuItems_or_wxID_ANY != wxID_ANY)
|
if (this->m_firstIdForMenuItems_or_wxID_ANY != wxID_ANY)
|
||||||
wxid = this->m_firstIdForMenuItems_or_wxID_ANY + id;
|
wxid = this->m_firstIdForMenuItems_or_wxID_ANY + id;
|
||||||
|
|
||||||
curitem.ItemPtr = m_Menu->Append( wxid, Path::GetFilename(curitem.Filename), curitem.Filename, wxITEM_RADIO );
|
curitem.ItemPtr = m_Menu->AppendRadioItem( wxid, Path::GetFilename(curitem.Filename), curitem.Filename );
|
||||||
bool exists = wxFileExists( curitem.Filename );
|
bool exists = wxFileExists( curitem.Filename );
|
||||||
|
|
||||||
if( m_cursel == id && exists )
|
if( m_cursel == id && exists )
|
||||||
|
|
Loading…
Reference in New Issue