Allow customisation of error report email address.
[dcpomatic.git] / src / tools / dcpomatic_kdm.cc
index 7838e145d71e81396d6cd577f5e6a5308d8330b0..b333f53276b49907a251ee38c8edd6ebf02eda26 100644 (file)
@@ -920,23 +920,25 @@ private:
                        throw;
                } catch (FileError& e) {
                        error_dialog (
-                               0,
+                               nullptr,
                                wxString::Format (
-                                       _("An exception occurred: %s (%s)\n\n") + REPORT_PROBLEM,
-                                       std_to_wx (e.what()),
-                                       std_to_wx (e.file().string().c_str ())
+                                       _("An exception occurred: %s (%s)\n\n%s"),
+                                       std_to_wx(e.what()),
+                                       std_to_wx(e.file().string().c_str()),
+                                       wx::report_problem()
                                        )
                                );
                } catch (exception& e) {
                        error_dialog (
                                nullptr,
                                wxString::Format (
-                                       _("An exception occurred: %s.\n\n") + " " + REPORT_PROBLEM,
-                                       std_to_wx(e.what())
+                                       _("An exception occurred: %s.\n\n%s"),
+                                       std_to_wx(e.what()),
+                                       wx::report_problem()
                                        )
                                );
                } catch (...) {
-                       error_dialog (0, _("An unknown exception occurred.") + "  " + REPORT_PROBLEM);
+                       error_dialog(nullptr, _("An unknown exception occurred.") + "  " + wx::report_problem());
                }
 
                /* This will terminate the program */
@@ -945,7 +947,7 @@ private:
 
        void OnUnhandledException () override
        {
-               error_dialog (nullptr, _("An unknown exception occurred.") + "  " + REPORT_PROBLEM);
+               error_dialog(nullptr, _("An unknown exception occurred.") + "  " + wx::report_problem());
        }
 
        void idle ()