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

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