Added confirm to delete (#1698)

This commit is contained in:
Josh Pruim 2016-05-16 11:42:35 -07:00 committed by Ivan
parent aafcf44581
commit 805c778f91

View File

@ -233,8 +233,11 @@ void GameViewer::RemoveGame(wxCommandEvent& event)
{
long i = GetFirstSelected();
if (i < 0) return;
fs::remove_all(vfs::get(m_path) + this->GetItemText(i, 6).ToStdString());
if (wxMessageBox("Permanently delete game files?", "Confirm Delete", wxYES_NO | wxNO_DEFAULT) == wxYES)
{
fs::remove_all(vfs::get(m_path) + this->GetItemText(i, 6).ToStdString());
}
Refresh();
}