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:
arcum42 2011-12-31 18:50:17 +00:00
parent 5325f9b490
commit bffde4fd5e
2 changed files with 5 additions and 2 deletions

View File

@ -1,4 +1,4 @@
#!/bin/bash
#!/bin/sh
flags=""
args="$@"

View File

@ -121,6 +121,9 @@ void RecentIsoManager::Repopulate()
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)
// 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 )
@ -176,7 +179,7 @@ void RecentIsoManager::InsertIntoMenu( int id )
if (this->m_firstIdForMenuItems_or_wxID_ANY != wxID_ANY)
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 );
if( m_cursel == id && exists )