]> git.saurik.com Git - wxWidgets.git/blobdiff - src/gtk/filedlg.cpp
added "access" parameter to wxFile::Create and Open. The default value is
[wxWidgets.git] / src / gtk / filedlg.cpp
index aa05bdac13fbc3c21e216fcd3b80b66706397c35..4589f3de1ab70add12d97c3db36d3621c6ee05ce 100644 (file)
@@ -65,7 +65,7 @@ wxFileDialog::wxFileDialog(wxWindow *parent, const wxString& message,
   GtkFileSelection *sel = GTK_FILE_SELECTION(m_widget);
 
   m_path.Append(m_dir);
-  if(m_path.Last()!='/') m_path.Append('/');
+  if(! m_path.IsEmpty() && m_path.Last()!='/') m_path.Append('/');
   m_path.Append(m_fileName);
 
   if(m_path.Length()>1) gtk_file_selection_set_filename(sel,m_path);