]> git.lyx.org Git - lyx.git/blobdiff - src/frontends/xforms/FileDialog.C
fix crash with "save as"
[lyx.git] / src / frontends / xforms / FileDialog.C
index b7021cd25d84901b9236a4c92e77cf1ed01e5727..7427dd0620f32e1a82246adbdb47382010a25f3d 100644 (file)
@@ -48,7 +48,13 @@ FileDialog::~FileDialog()
 }
 
 
-FileDialog::Result const FileDialog::Select(string const & path, string const & mask, string const & suggested)
+FileDialog::Result const FileDialog::save(string const & path, string const & mask, string const & suggested)
+{
+       return open(path, mask, suggested);
+}
+
+FileDialog::Result const FileDialog::open(string const & path, string const & mask, string const & suggested)
 {
        string filter = mask;
 
@@ -60,7 +66,8 @@ FileDialog::Result const FileDialog::Select(string const & path, string const &
                        filter = mask;
        }
 
-       lyxerr[Debug::GUI] << "Select with path \"" << path << "\", mask \"" << filter << "\", suggested \"" << suggested << "\"" << endl;
+       lyxerr[Debug::GUI] << "filedialog open  with path \"" << path << "\", mask \""
+               << filter << "\", suggested \"" << suggested << "\"" << endl;
 
        // no support for asynchronous selection yet