]> 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 56c9c1914b826791d1fac7bde114bf491cd2e365..7427dd0620f32e1a82246adbdb47382010a25f3d 100644 (file)
@@ -1,9 +1,11 @@
 /**
  * \file xforms/FileDialog.C
- * Copyright 2001 the LyX Team
- * 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, moz@compsoc.man.ac.uk
+ * \author John Levon
+ *
+ * Full author contact details are available in file CREDITS
  */
 
 #include <config.h>
@@ -46,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;
 
@@ -58,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