diff --git a/src/main.cpp b/src/main.cpp index 58a860cff..ffa2277a3 100644 --- a/src/main.cpp +++ b/src/main.cpp @@ -1156,7 +1156,7 @@ void askForInternetPermission() "at a later time, go to options, select tab " "'User Interface', and edit \"Allow STK to connect to the " "Internet\" and \"Allow STK to send anonymous HW statistics\")."), - MessageDialog::MESSAGE_DIALOG_CONFIRM, + MessageDialog::MESSAGE_DIALOG_YESNO, new ConfirmServer(), true); } diff --git a/src/states_screens/dialogs/message_dialog.cpp b/src/states_screens/dialogs/message_dialog.cpp index c012dcd86..b9a571b46 100644 --- a/src/states_screens/dialogs/message_dialog.cpp +++ b/src/states_screens/dialogs/message_dialog.cpp @@ -95,6 +95,14 @@ void MessageDialog::doInit(MessageDialogType type, cancelbtn->setText(_("OK")); cancelbtn->setFocusForPlayer(PLAYER_ID_GAME_MASTER); } + else if (type == MessageDialog::MESSAGE_DIALOG_YESNO) + { + ButtonWidget* yesbtn = getWidget("confirm"); + + ButtonWidget* cancelbtn = getWidget("cancel"); + cancelbtn->setText(_("No")); + + } else if (type == MessageDialog::MESSAGE_DIALOG_OK_CANCEL) { // In case of a OK_CANCEL dialog, change the text from 'Yes' to 'Ok' diff --git a/src/states_screens/dialogs/message_dialog.hpp b/src/states_screens/dialogs/message_dialog.hpp index c325b52f4..05dfda475 100644 --- a/src/states_screens/dialogs/message_dialog.hpp +++ b/src/states_screens/dialogs/message_dialog.hpp @@ -62,7 +62,7 @@ public: }; enum MessageDialogType { MESSAGE_DIALOG_OK, MESSAGE_DIALOG_CONFIRM, - MESSAGE_DIALOG_OK_CANCEL }; + MESSAGE_DIALOG_OK_CANCEL, MESSAGE_DIALOG_YESNO }; private: