mirror of
https://github.com/RPCS3/rpcs3.git
synced 2025-01-06 10:08:20 +00:00
Make removing a save fast
This commit is contained in:
parent
196cdfafa6
commit
e9f057c91b
@ -242,11 +242,11 @@ void save_manager_dialog::OnEntryRemove()
|
||||
int idx = m_list->currentRow();
|
||||
if (idx != -1)
|
||||
{
|
||||
idx = m_list->item(idx, 0)->data(Qt::UserRole).toInt();
|
||||
if (QMessageBox::question(this, "Delete Confirmation", "Are you sure you want to delete:\n" + qstr(m_save_entries[idx].title) + "?", QMessageBox::Yes, QMessageBox::No) == QMessageBox::Yes)
|
||||
int idx_real = m_list->item(idx, 0)->data(Qt::UserRole).toInt();
|
||||
if (QMessageBox::question(this, "Delete Confirmation", "Are you sure you want to delete:\n" + qstr(m_save_entries[idx_real].title) + "?", QMessageBox::Yes, QMessageBox::No) == QMessageBox::Yes)
|
||||
{
|
||||
fs::remove_all(m_dir + m_save_entries[idx].dirName + "/");
|
||||
UpdateList();
|
||||
fs::remove_all(m_dir + m_save_entries[idx_real].dirName + "/");
|
||||
m_list->removeRow(idx);
|
||||
}
|
||||
}
|
||||
}
|
||||
|
Loading…
Reference in New Issue
Block a user