+#ifdef DCPOMATIC_WINDOWS
+ string bad_chars = "<>:\"/\\|?*";
+ string const filename = d->path().string();
+ string found_bad_chars;
+ for (size_t i = 0; i < bad_chars.length(); ++i) {
+ if (filename.find(bad_chars[i]) != string::npos && found_bad_chars.find(bad_chars[i]) == string::npos) {
+ found_bad_chars += bad_chars[i];
+ }
+ }
+ error_dialog (
+ this,
+ String::compose(_("Could not create folder to store film. Try removing the %1 characters from your folder name.", found_bad_chars)),
+ std_to_wx(e.what())
+ );
+#else
+ error_dialog (this, _("Could not create folder to store film."), std_to_wx(e.what()));
+#endif