From 40b233448c7a3977d45831b8aa6cf31019c03940 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Petr=20Mr=C3=A1zek?= Date: Tue, 1 Sep 2015 02:23:18 +0200 Subject: Use default Yes/No buttons for confirmation --- application/pages/WorldListPage.cpp | 10 +++++----- 1 file changed, 5 insertions(+), 5 deletions(-) (limited to 'application/pages/WorldListPage.cpp') 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(); -- cgit v1.2.3