From 901577489fccd510b00a5f69fa3fd7ba253894ab Mon Sep 17 00:00:00 2001 From: Shawn Hoffman Date: Mon, 3 Nov 2008 01:06:07 +0000 Subject: [PATCH] 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 --- Source/Core/DolphinWX/Src/ConfigMain.cpp | 11 +++++++++-- 1 file 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