Use default Yes/No buttons for confirmation
This commit is contained in:
parent
7d8c71aad8
commit
40b233448c
@ -86,17 +86,17 @@ void WorldListPage::on_rmWorldBtn_clicked()
|
|||||||
|
|
||||||
if (!lastfirst(list, first, last))
|
if (!lastfirst(list, first, last))
|
||||||
return;
|
return;
|
||||||
|
|
||||||
auto result = QMessageBox::question(this,
|
auto result = QMessageBox::question(this,
|
||||||
tr("Are you sure?"),
|
tr("Are you sure?"),
|
||||||
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();
|
||||||
|
Loading…
Reference in New Issue
Block a user