+void
+ExportFilenameSelector::check_folder ()
+{
+ if (!filename) {
+ return;
+ }
+
+ if (!Glib::file_test (path_entry.get_text(), Glib::FILE_TEST_IS_DIR|Glib::FILE_TEST_EXISTS)) {
+ Gtk::MessageDialog msg (string_compose (_("%1: this is only the directory/folder name, not the filename.\n\
+The filename will be chosen from the information just above the folder selector."), path_entry.get_text()));
+ msg.run ();
+ path_entry.set_text (Glib::path_get_dirname (path_entry.get_text()));
+ filename->set_folder (path_entry.get_text());
+ CriticalSelectionChanged();
+ }
+}
+