]> git.lyx.org Git - lyx.git/blobdiff - src/frontends/xforms/FormFiledialog.C
fix crash with "save as"
[lyx.git] / src / frontends / xforms / FormFiledialog.C
index 3c77c919e89358d154c032aaceef311686ee7c72..64ff1a5da278f3890829960aee90de8c4a9a46fa 100644 (file)
@@ -1,10 +1,12 @@
 /**
  * \file FormFiledialog.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 unknown
- * \author John Levon, moz@compsoc.man.ac.uk
+ * \author John Levon
+ *
+ * Full author contact details are available in file CREDITS
  */
 
 #include <config.h>
@@ -416,7 +418,7 @@ FileDialog::Private::Private(Dialogs & dia)
        fl_hide_object(file_dlg_form_->User1);
        fl_hide_object(file_dlg_form_->User2);
 
-       r_ = dia.redrawGUI.connect(boost::bind(&FileDialog::Private::redraw, this));
+       r_ = dia.redrawGUI().connect(boost::bind(&FileDialog::Private::redraw, this));
 }
 
 
@@ -710,7 +712,7 @@ string const FileDialog::Private::Select(string const & title,
        if (!filename.empty()) {
                for (int i = 0; i < fl_get_browser_maxline(file_dlg_form_->List); ++i) {
                        string s = fl_get_browser_line(file_dlg_form_->List, i + 1);
-                       s = strip(frontStrip(s));
+                       s = trim(s);
                        if (s == filename) {
                                sel = i + 1;
                                break;