mirror of
https://github.com/RPCS3/rpcs3.git
synced 2025-07-09 16:31:28 +12:00
Make removing a save fast
This commit is contained in:
parent
196cdfafa6
commit
e9f057c91b
1 changed files with 4 additions and 4 deletions
|
@ -242,11 +242,11 @@ void save_manager_dialog::OnEntryRemove()
|
||||||
int idx = m_list->currentRow();
|
int idx = m_list->currentRow();
|
||||||
if (idx != -1)
|
if (idx != -1)
|
||||||
{
|
{
|
||||||
idx = m_list->item(idx, 0)->data(Qt::UserRole).toInt();
|
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].title) + "?", QMessageBox::Yes, QMessageBox::No) == QMessageBox::Yes)
|
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 + "/");
|
fs::remove_all(m_dir + m_save_entries[idx_real].dirName + "/");
|
||||||
UpdateList();
|
m_list->removeRow(idx);
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue