Tidy up creation of analysis a bit.
[dcpomatic.git] / src / wx / job_manager_view.cc
index a521f5b8066967eec672f788696c82509eb5dc28..7361f29a815896d1021a5a1ed06a1500cc293f8c 100644 (file)
@@ -98,17 +98,18 @@ JobManagerView::update ()
                if (!(*i)->finished ()) {
                        float const p = (*i)->overall_progress ();
                        if (p >= 0) {
-                               _job_records[*i].message->SetLabel (std_to_wx (st));
+                               checked_set (_job_records[*i].message, st);
                                _job_records[*i].gauge->SetValue (p * 100);
                        } else {
-                               _job_records[*i].message->SetLabel (_("Running"));
+                               checked_set (_job_records[*i].message, wx_to_std (_("Running")));
                                _job_records[*i].gauge->Pulse ();
                        }
                }
                
                if ((*i)->finished() && !_job_records[*i].finalised) {
                        _job_records[*i].gauge->SetValue (100);
-                       _job_records[*i].message->SetLabel (std_to_wx (st));
+                       checked_set (_job_records[*i].message, st);
+                       (*i)->Finished ();
                        _job_records[*i].finalised = true;
                        if (!(*i)->error_details().empty ()) {
                                _job_records[*i].details->Enable (true);
@@ -131,7 +132,7 @@ JobManagerView::details_clicked (wxCommandEvent& ev)
                if (i->second.details == o) {
                        string s = i->first->error_summary();
                        s[0] = toupper (s[0]);
-                       error_dialog (this, String::compose ("%1.\n\n%2", s, i->first->error_details()));
+                       error_dialog (this, std_to_wx (String::compose ("%1.\n\n%2", s, i->first->error_details())));
                }
        }
 }