From 1194a91be4600cb51b168d9faa3acc97e1ce0703 Mon Sep 17 00:00:00 2001 From: Ian McInerney Date: Thu, 23 Nov 2023 11:49:40 +0000 Subject: [PATCH] Prompt if overwriting the net inspector CSV report --- pcbnew/dialogs/dialog_net_inspector.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/pcbnew/dialogs/dialog_net_inspector.cpp b/pcbnew/dialogs/dialog_net_inspector.cpp index 7c3f862b20..c8efef9717 100644 --- a/pcbnew/dialogs/dialog_net_inspector.cpp +++ b/pcbnew/dialogs/dialog_net_inspector.cpp @@ -2244,7 +2244,7 @@ void DIALOG_NET_INSPECTOR::onReport( wxCommandEvent& aEvent ) { wxFileDialog dlg( this, _( "Save Report File" ), "", "", _( "Report file" ) + AddFileExtListToFilter( { "csv" } ), - wxFD_SAVE ); + wxFD_SAVE | wxFD_OVERWRITE_PROMPT ); if( dlg.ShowModal() == wxID_CANCEL ) return;