summaryrefslogtreecommitdiff
path: root/Source
diff options
context:
space:
mode:
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