summaryrefslogtreecommitdiff
path: root/Source
diff options
context:
space:
mode:
authorShawn Hoffman <godisgovernment@gmail.com>2008-11-03 01:06:07 +0000
committerShawn Hoffman <godisgovernment@gmail.com>2008-11-03 01:06:07 +0000
commit901577489fccd510b00a5f69fa3fd7ba253894ab (patch)
tree2d9c8f11ab00cf52c004f1d6ae254c8515deb706 /Source
parent43b302a0001626e80540c0ebe1318bb8a4b7370e (diff)
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
Diffstat (limited to 'Source')
-rw-r--r--Source/Core/DolphinWX/Src/ConfigMain.cpp11
1 files changed, 9 insertions, 2 deletions
diff --git a/Source/Core/DolphinWX/Src/ConfigMain.cpp b/Source/Core/DolphinWX/Src/ConfigMain.cpp
index 05b5849595..9bbb1e39b3 100644
--- a/Source/Core/DolphinWX/Src/ConfigMain.cpp
+++ b/Source/Core/DolphinWX/Src/ConfigMain.cpp
@@ -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