Prompt user when overwriting a file during G-code export as well. #2882

This commit is contained in:
Alessandro Ranellucci 2015-06-03 13:19:43 +02:00
parent 52d3a047a0
commit eff0620ddf
2 changed files with 2 additions and 2 deletions

View file

@ -1097,7 +1097,7 @@ sub export_gcode {
} else {
my $default_output_file = $self->{print}->expanded_output_filepath($main::opt{output});
my $dlg = Wx::FileDialog->new($self, 'Save G-code file as:', wxTheApp->output_path(dirname($default_output_file)),
basename($default_output_file), &Slic3r::GUI::FILE_WILDCARDS->{gcode}, wxFD_SAVE);
basename($default_output_file), &Slic3r::GUI::FILE_WILDCARDS->{gcode}, wxFD_SAVE | wxFD_OVERWRITE_PROMPT);
if ($dlg->ShowModal != wxID_OK) {
$dlg->Destroy;
return;