Skip to content

Commit

Permalink
#5565: Dialog modality
Browse files Browse the repository at this point in the history
  • Loading branch information
codereader committed Mar 25, 2021
1 parent 5aec81f commit 49f2ecd
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions radiant/ui/materials/editor/MaterialEditor.cpp
Expand Up @@ -1047,7 +1047,7 @@ bool MaterialEditor::askUserAboutModifiedMaterial()
// The material we're editing has been changed from the saved one
wxutil::Messagebox box(_("Save Changes"),
fmt::format(_("Do you want to save the changes to the material\n{0}?"), origName),
IDialog::MESSAGE_SAVECONFIRMATION);
IDialog::MESSAGE_SAVECONFIRMATION, this);

auto result = box.run();

Expand Down Expand Up @@ -1113,7 +1113,7 @@ void MaterialEditor::_onRevertMaterial(wxCommandEvent& ev)
// The material we're editing has been changed from the saved one
wxutil::Messagebox box(_("Discard Changes"),
fmt::format(_("Do you want to discard all the changes to the material\n{0}?"), _material->getName()),
IDialog::MESSAGE_ASK);
IDialog::MESSAGE_ASK, this);

if (box.run() == IDialog::RESULT_YES)
{
Expand Down

0 comments on commit 49f2ecd

Please sign in to comment.