diff --git a/build.sh b/build.sh index a8aa0fd25e..4d2ab59adc 100755 --- a/build.sh +++ b/build.sh @@ -1,4 +1,4 @@ -#!/bin/bash +#!/bin/sh flags="" args="$@" diff --git a/pcsx2/gui/RecentIsoList.cpp b/pcsx2/gui/RecentIsoList.cpp index 25ad64f14b..eecd7e7184 100644 --- a/pcsx2/gui/RecentIsoList.cpp +++ b/pcsx2/gui/RecentIsoList.cpp @@ -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 )