]> git.lyx.org Git - lyx.git/blobdiff - src/frontends/controllers/helper_funcs.C
Add a buffer_path arg to InsetGraphicsMailer's params2string, string2params.
[lyx.git] / src / frontends / controllers / helper_funcs.C
index 34ac0f1207a9a156061d489d7cd1f5c9a26cc61d..28826ad9e732a50e80f49046fe95c01f8ff17dc8 100644 (file)
@@ -21,6 +21,8 @@
 #include "gettext.h" // _()
 #include "frontends/Alert.h"
 
+using namespace lyx::support;
+
 using std::pair;
 using std::vector;
 using std::make_pair;
@@ -57,9 +59,10 @@ string const browseFile(string const & filename,
                if (result.second.find_first_of("#~$% ") == string::npos)
                        break;
 
-               Alert::alert(_("Filename can't contain any "
-                       "of these characters:"),
-                       _("space, '#', '~', '$' or '%'."));
+               Alert::error(_("Invalid filename"),
+                       _("Filename can't contain any "
+                       "of these characters:\n"
+                       "space, '#', '~', '$' or '%'."));
        }
 
        return result.second;
@@ -111,9 +114,10 @@ string const browseDir(string const & pathname,
                if (result.second.find_first_of("#~$% ") == string::npos)
                        break;
 
-               Alert::alert(_("directory name can't contain any "
-                       "of these characters:"),
-                       _("space, '#', '~', '$' or '%'."));
+               Alert::error(_("Invalid filename"),
+                       _("Filename can't contain any "
+                       "of these characters:\n"
+                       "space, '#', '~', '$' or '%'."));
        }
 
        return result.second;