Use default Yes/No buttons for confirmation

This commit is contained in:
Petr Mrázek 2015-09-01 02:23:18 +02:00
parent 7d8c71aad8
commit 40b233448c

View File

@ -92,11 +92,11 @@ void WorldListPage::on_rmWorldBtn_clicked()
tr("This will remove the selected world permenantly.\n" tr("This will remove the selected world permenantly.\n"
"The world will be gone forever (A LONG TIME).\n" "The world will be gone forever (A LONG TIME).\n"
"\n" "\n"
"Do you want to continue?"), "Do you want to continue?"));
tr("I understand, continue."), tr("Cancel"), QString(), 1, 1 if(result != QMessageBox::Yes)
); {
if(result != 0)
return; return;
}
m_worlds->stopWatching(); m_worlds->stopWatching();
m_worlds->deleteWorlds(first, last); m_worlds->deleteWorlds(first, last);
m_worlds->startWatching(); m_worlds->startWatching();