]> 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 33e80479411f9dbb3083e3f208191a243c58f9d5..7427dd0620f32e1a82246adbdb47382010a25f3d 100644 (file)
@@ -1,6 +1,7 @@
 /**
  * \file xforms/FileDialog.C
- * Read the file COPYING
+ * This file is part of LyX, the document processor.
+ * Licence details can be found in the file COPYING.
  *
  * \author John Levon
  *
@@ -47,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;
 
@@ -59,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