X-Git-Url: https://git.saurik.com/wxWidgets.git/blobdiff_plain/fa333077f53d0907364ac39fc55d9de0b838fb5a..b4c1fe36b9854cdb404906ba3a181a67f9247e0e:/src/gtk/filedlg.cpp diff --git a/src/gtk/filedlg.cpp b/src/gtk/filedlg.cpp index fb0bfa7735..ace2daddcd 100644 --- a/src/gtk/filedlg.cpp +++ b/src/gtk/filedlg.cpp @@ -369,8 +369,11 @@ void wxFileDialog::SetMessage(const wxString& message) void wxFileDialog::SetPath(const wxString& path) { - wxCHECK_RET(wxIsAbsolutePath(path), " wxFileDialog::SetPath requires an absolute filepath"); - m_fc.SetPath( path ); + // we need an absolute path for GTK native chooser so ensure that we have + // it + wxFileName fn(path); + fn.MakeAbsolute(); + m_fc.SetPath(fn.GetFullPath()); } void wxFileDialog::SetDirectory(const wxString& dir)