Some more modal pause RAII stuff
This commit is contained in:
parent
a3ab2973f9
commit
fdbf57c942
3 changed files with 3 additions and 6 deletions
|
@ -108,13 +108,12 @@ void wxeditor_authors::on_ok(wxCommandEvent& e)
|
|||
|
||||
void wxeditor_authors_display(wxWindow* parent)
|
||||
{
|
||||
platform::set_modal_pause(true);
|
||||
modal_pause_holder hld;
|
||||
wxDialog* editor;
|
||||
try {
|
||||
editor = new wxeditor_authors(parent);
|
||||
editor->ShowModal();
|
||||
} catch(...) {
|
||||
}
|
||||
platform::set_modal_pause(false);
|
||||
editor->Destroy();
|
||||
}
|
||||
|
|
|
@ -276,7 +276,7 @@ void wxeditor_axes::on_ok(wxCommandEvent& e)
|
|||
|
||||
void wxeditor_axes_display(wxWindow* parent)
|
||||
{
|
||||
platform::set_modal_pause(true);
|
||||
modal_pause_holder hld;
|
||||
wxDialog* editor;
|
||||
try {
|
||||
editor = new wxeditor_axes(parent);
|
||||
|
@ -288,6 +288,5 @@ void wxeditor_axes_display(wxWindow* parent)
|
|||
}
|
||||
} catch(...) {
|
||||
}
|
||||
platform::set_modal_pause(false);
|
||||
editor->Destroy();
|
||||
}
|
||||
|
|
|
@ -248,13 +248,12 @@ void wxeditor_settings_listener::on_setting_clear(const std::string& _setting)
|
|||
|
||||
void wxeditor_settings_display(wxWindow* parent)
|
||||
{
|
||||
platform::set_modal_pause(true);
|
||||
modal_pause_holder hld;
|
||||
wxDialog* editor;
|
||||
try {
|
||||
editor = new wxeditor_settings(parent);
|
||||
editor->ShowModal();
|
||||
} catch(...) {
|
||||
}
|
||||
platform::set_modal_pause(false);
|
||||
editor->Destroy();
|
||||
}
|
||||
|
|
Loading…
Add table
Reference in a new issue