Show correct save path when using compressed debug report
The compressed report location could be set to a different location from the one shown in the dialog. Closes #17176. Closes https://github.com/wxWidgets/wxWidgets/pull/797
This commit is contained in:
committed by
Vadim Zeitlin
parent
390c45d1d9
commit
59c37cb5eb
@@ -306,16 +306,15 @@ wxDebugReportDialog::wxDebugReportDialog(wxDebugReport& dbgrpt)
|
||||
{
|
||||
// upper part of the dialog: explanatory message
|
||||
wxString msg;
|
||||
wxString debugDir = dbgrpt.GetDirectory();
|
||||
|
||||
// The temporary directory can be the short form on Windows;
|
||||
// normalize it for the benefit of users.
|
||||
#ifdef __WXMSW__
|
||||
wxFileName debugDirFilename(debugDir, wxEmptyString);
|
||||
wxFileName debugDirFilename(dbgrpt.GetSaveLocation());
|
||||
debugDirFilename.Normalize(wxPATH_NORM_LONG);
|
||||
debugDir = debugDirFilename.GetPath();
|
||||
#endif
|
||||
msg << _("A debug report has been generated in the directory\n")
|
||||
wxString debugDir = debugDirFilename.GetFullPath();
|
||||
msg << (debugDirFilename.IsDir()
|
||||
? _("A debug report has been generated in the directory\n")
|
||||
: _("The following debug report will be generated\n"))
|
||||
<< wxT('\n')
|
||||
<< wxT(" \"") << debugDir << wxT("\"\n")
|
||||
<< wxT('\n')
|
||||
|
||||
Reference in New Issue
Block a user