mirror of
https://gitlab.com/OpenMW/openmw.git
synced 2025-01-25 15:35:23 +00:00
Remove unused and slightly broken custom button titles in ConfirmationDialog
This commit is contained in:
parent
ad4b91131f
commit
35110fb2f8
@ -19,14 +19,6 @@ namespace MWGui
|
||||
mOkButton->eventMouseButtonClick += MyGUI::newDelegate(this, &ConfirmationDialog::onOkButtonClicked);
|
||||
}
|
||||
|
||||
void ConfirmationDialog::askForConfirmation(const std::string& message, const std::string& confirmMessage, const std::string& cancelMessage)
|
||||
{
|
||||
mCancelButton->setCaptionWithReplacing(cancelMessage);
|
||||
mOkButton->setCaptionWithReplacing(confirmMessage);
|
||||
|
||||
askForConfirmation(message);
|
||||
}
|
||||
|
||||
void ConfirmationDialog::askForConfirmation(const std::string& message)
|
||||
{
|
||||
setVisible(true);
|
||||
|
@ -10,7 +10,6 @@ namespace MWGui
|
||||
public:
|
||||
ConfirmationDialog();
|
||||
void askForConfirmation(const std::string& message);
|
||||
void askForConfirmation(const std::string& message, const std::string& confirmMessage, const std::string& cancelMessage);
|
||||
virtual bool exit();
|
||||
|
||||
typedef MyGUI::delegates::CMultiDelegate0 EventHandle_Void;
|
||||
|
@ -701,7 +701,7 @@ namespace MWGui
|
||||
void MapWindow::onNoteEditDelete()
|
||||
{
|
||||
ConfirmationDialog* confirmation = MWBase::Environment::get().getWindowManager()->getConfirmationDialog();
|
||||
confirmation->askForConfirmation("#{sDeleteNote}", "#{sYes}", "#{sNo}");
|
||||
confirmation->askForConfirmation("#{sDeleteNote}");
|
||||
confirmation->eventCancelClicked.clear();
|
||||
confirmation->eventOkClicked.clear();
|
||||
confirmation->eventOkClicked += MyGUI::newDelegate(this, &MapWindow::onNoteEditDeleteConfirm);
|
||||
|
Loading…
x
Reference in New Issue
Block a user