From: <hug...@li...> - 2011-12-23 07:35:55
|
branch: details: http://hugin.hg.sourceforge.net/hgweb/hugin/hugin/hgrepo/h/hu/hugin/hugin/rev/b873e1da31f0 changeset: 5712:b873e1da31f0 user: tmodes date: Fri Dec 23 08:34:18 2011 +0100 description: Check for failed projects before displaying dialog diffstat: src/hugin1/ptbatcher/BatchFrame.cpp | 7 +++++-- 1 files changed, 5 insertions(+), 2 deletions(-) diffs (17 lines): diff -r 923ddde5649d -r b873e1da31f0 src/hugin1/ptbatcher/BatchFrame.cpp --- a/src/hugin1/ptbatcher/BatchFrame.cpp Fri Dec 23 08:33:58 2011 +0100 +++ b/src/hugin1/ptbatcher/BatchFrame.cpp Fri Dec 23 08:34:18 2011 +0100 @@ -1079,8 +1079,11 @@ void BatchFrame::OnBatchFailed(wxCommandEvent& event) { - FailedProjectsDialog failedProjects_dlg(this,m_batch,m_xrcPrefix); - failedProjects_dlg.ShowModal(); + if(m_batch->GetFailedProjectsCount()>0) + { + FailedProjectsDialog failedProjects_dlg(this,m_batch,m_xrcPrefix); + failedProjects_dlg.ShowModal(); + }; }; void BatchFrame::OnBatchInformation(wxCommandEvent& e) |