Show fatal errors after export is terminated

This commit is contained in:
Michal Horejsek
2020-10-19 09:35:17 +02:00
parent 26fb1fc34d
commit 51b6f95342
3 changed files with 7 additions and 2 deletions

View File

@ -217,7 +217,10 @@ Dialog {
Text {
anchors.centerIn: parent
text: {
if (progressbarExport.isFinished) return qsTr("Export finished","todo")
if (progressbarExport.isFinished) {
if (go.progressDescription=="") return qsTr("Export finished","todo")
else return qsTr("Export failed: %1").arg(go.progressDescription)
}
if (
go.progressDescription == gui.enums.progressInit ||
(go.progress==0 && go.description=="")