Fixes PrusaSlicer exits after entering illegal object name #2348
For some reason, showing an error message box from inside the right panel in place editor handler lealds to crashes at least on Windows. Postpoing the dialog with a CallAfter cures that crash.
This commit is contained in:
parent
e8077d9e2e
commit
666e9687ce
@ -2816,8 +2816,10 @@ void ObjectList::OnEditingDone(wxDataViewEvent &event)
|
|||||||
const auto renderer = dynamic_cast<BitmapTextRenderer*>(GetColumn(0)->GetRenderer());
|
const auto renderer = dynamic_cast<BitmapTextRenderer*>(GetColumn(0)->GetRenderer());
|
||||||
|
|
||||||
if (renderer->WasCanceled())
|
if (renderer->WasCanceled())
|
||||||
|
wxTheApp->CallAfter([this]{
|
||||||
show_error(this, _(L("The supplied name is not valid;")) + "\n" +
|
show_error(this, _(L("The supplied name is not valid;")) + "\n" +
|
||||||
_(L("the following characters are not allowed:")) + " <>:/\\|?*\"");
|
_(L("the following characters are not allowed:")) + " <>:/\\|?*\"");
|
||||||
|
});
|
||||||
}
|
}
|
||||||
|
|
||||||
void ObjectList::show_multi_selection_menu()
|
void ObjectList::show_multi_selection_menu()
|
||||||
|
Loading…
Reference in New Issue
Block a user