now you cannot add an ISO path which is already in the list

git-svn-id: https://dolphin-emu.googlecode.com/svn/trunk@1053 8ced0084-cf51-0410-be5f-012b33b47a6e
This commit is contained in:
Shawn Hoffman 2008-11-03 01:06:07 +00:00
parent 43b302a000
commit 901577489f
1 changed files with 9 additions and 2 deletions

View File

@ -435,8 +435,15 @@ void CConfigMain::AddRemoveISOPaths(wxCommandEvent& event)
if (dialog.ShowModal() == wxID_OK)
{
bRefreshList = true;
ISOPaths->Append(dialog.GetPath());
if (ISOPaths->FindString(dialog.GetPath()) != -1)
{
wxMessageBox(_("The chosen directory is already in the list"), _("Error"), wxOK);
}
else
{
bRefreshList = true;
ISOPaths->Append(dialog.GetPath());
}
}
}
else