From: Ralf Date: Sun, 10 Jan 2021 09:09:26 +0000 (+0100) Subject: Fix Bug #1649 (Save dialog does not close automatically) X-Git-Url: https://sigrok.org/gitaction?a=commitdiff_plain;h=a6fa4d477d783478935a78c1b70596e38ae8ca64;p=pulseview.git Fix Bug #1649 (Save dialog does not close automatically) --- diff --git a/pv/dialogs/storeprogress.cpp b/pv/dialogs/storeprogress.cpp index 295e98fa..0bcfbf2c 100644 --- a/pv/dialogs/storeprogress.cpp +++ b/pv/dialogs/storeprogress.cpp @@ -113,7 +113,9 @@ void StoreProgress::on_progress_updated() setMaximum(p.second); } else { const QString err = session_.error(); - if (!err.isEmpty() && !showing_error_) + if (err.isEmpty()) + close(); + else if (!showing_error_) show_error(); } }