- JobManager::instance()->add (
- shared_ptr<Job> (new SendKDMEmailJob (
- decrypted.annotation_text(),
- decrypted.content_title_text(),
- _timing->from(), _timing->until(),
- CinemaKDMs::collect (screen_kdms)
- ))
- );
+ shared_ptr<Job> job (new SendKDMEmailJob (
+ decrypted.annotation_text(),
+ decrypted.content_title_text(),
+ _timing->from(), _timing->until(),
+ CinemaKDMs::collect (screen_kdms)
+ ));
+
+ JobManager::instance()->add (job);
+ if (_job_view) {
+ _job_view->Destroy ();
+ _job_view = 0;
+ }
+ _job_view = new JobViewDialog (this, _("Send KDM emails"), job);
+ _job_view->ShowModal ();