diff options
author | Petr Mrázek <peterix@gmail.com> | 2015-09-01 02:23:18 +0200 |
---|---|---|
committer | Petr Mrázek <peterix@gmail.com> | 2015-09-06 16:00:07 +0200 |
commit | 40b233448c7a3977d45831b8aa6cf31019c03940 (patch) | |
tree | 1b9765d855bd7e9dd739f3df82dbc2e78ab230fb | |
parent | 7d8c71aad85247e4354fc45633237621716cd2f1 (diff) | |
download | MultiMC-40b233448c7a3977d45831b8aa6cf31019c03940.tar MultiMC-40b233448c7a3977d45831b8aa6cf31019c03940.tar.gz MultiMC-40b233448c7a3977d45831b8aa6cf31019c03940.tar.lz MultiMC-40b233448c7a3977d45831b8aa6cf31019c03940.tar.xz MultiMC-40b233448c7a3977d45831b8aa6cf31019c03940.zip |
Use default Yes/No buttons for confirmation
-rw-r--r-- | application/pages/WorldListPage.cpp | 10 |
1 files changed, 5 insertions, 5 deletions
diff --git a/application/pages/WorldListPage.cpp b/application/pages/WorldListPage.cpp index ea9e77cf..de31f519 100644 --- a/application/pages/WorldListPage.cpp +++ b/application/pages/WorldListPage.cpp @@ -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(); |