mirror of
https://github.com/dolphin-emu/dolphin.git
synced 2025-02-11 06:59:07 +01:00
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:
parent
43b302a000
commit
901577489f
@ -434,11 +434,18 @@ void CConfigMain::AddRemoveISOPaths(wxCommandEvent& event)
|
|||||||
wxDirDialog dialog(this, _T("Choose a directory to add"), dirHome, wxDD_DEFAULT_STYLE | wxDD_DIR_MUST_EXIST);
|
wxDirDialog dialog(this, _T("Choose a directory to add"), dirHome, wxDD_DEFAULT_STYLE | wxDD_DIR_MUST_EXIST);
|
||||||
|
|
||||||
if (dialog.ShowModal() == wxID_OK)
|
if (dialog.ShowModal() == wxID_OK)
|
||||||
|
{
|
||||||
|
if (ISOPaths->FindString(dialog.GetPath()) != -1)
|
||||||
|
{
|
||||||
|
wxMessageBox(_("The chosen directory is already in the list"), _("Error"), wxOK);
|
||||||
|
}
|
||||||
|
else
|
||||||
{
|
{
|
||||||
bRefreshList = true;
|
bRefreshList = true;
|
||||||
ISOPaths->Append(dialog.GetPath());
|
ISOPaths->Append(dialog.GetPath());
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
}
|
||||||
else
|
else
|
||||||
{
|
{
|
||||||
bRefreshList = true;
|
bRefreshList = true;
|
||||||
|
Loading…
x
Reference in New Issue
Block a user