summaryrefslogtreecommitdiff
path: root/src/wx/wx_util.cc
diff options
context:
space:
mode:
authorCarl Hetherington <cth@carlh.net>2018-01-12 22:30:43 +0000
committerCarl Hetherington <cth@carlh.net>2018-01-12 22:30:43 +0000
commitf1dbcec7552052856369631e77c5eb160badd619 (patch)
tree6fa9d8f36fe525fc32e8e88e8ae703d756fc1b43 /src/wx/wx_util.cc
parent49281333410c321e616c5d3cfd4308e21d0c9cb4 (diff)
Separate readable error from technical detail in some places.
Diffstat (limited to 'src/wx/wx_util.cc')
-rw-r--r--src/wx/wx_util.cc6
1 files changed, 5 insertions, 1 deletions
diff --git a/src/wx/wx_util.cc b/src/wx/wx_util.cc
index d732e03d3..e017f404d 100644
--- a/src/wx/wx_util.cc
+++ b/src/wx/wx_util.cc
@@ -85,11 +85,15 @@ add_label_to_sizer (wxGridBagSizer* s, wxWindow* p, wxString t, bool, wxGBPositi
/** Pop up an error dialogue box.
* @param parent Parent.
* @param m Message.
+ * @param e Extended message.
*/
void
-error_dialog (wxWindow* parent, wxString m)
+error_dialog (wxWindow* parent, wxString m, optional<wxString> e)
{
wxMessageDialog* d = new wxMessageDialog (parent, m, _("DCP-o-matic"), wxOK | wxICON_ERROR);
+ if (e) {
+ d->SetExtendedMessage (*e);
+ }
d->ShowModal ();
d->Destroy ();
}