FIX: dialog parent in Tab for drop variant modifies

Change-Id: I9b3750923a7a51f72b934bd4514f3d5d64e1aaa8
Jira: STUDIO-10429
This commit is contained in:
chunmao.guo 2025-03-07 10:16:39 +08:00 committed by lane.wei
parent 4e989fa97f
commit 7fca7c9884
1 changed files with 1 additions and 1 deletions

View File

@ -5134,7 +5134,7 @@ bool Tab::may_discard_current_dirty_preset(PresetCollection* presets /*= nullptr
} }
if (has_variants) { if (has_variants) {
auto msg = _L("Switching to a printer with different extruder types or numbers will discard or reset changes to extruder or multi-nozzle-related parameters."); auto msg = _L("Switching to a printer with different extruder types or numbers will discard or reset changes to extruder or multi-nozzle-related parameters.");
MessageDialog(this, msg, _L("Use Modified Value"), wxOK | wxICON_WARNING).ShowModal(); MessageDialog(wxGetApp().plater(), msg, _L("Use Modified Value"), wxOK | wxICON_WARNING).ShowModal();
selected_options.erase(std::remove(selected_options.begin(), selected_options.end(), ""), selected_options.end()); selected_options.erase(std::remove(selected_options.begin(), selected_options.end(), ""), selected_options.end());
} }
} }