diff --git a/updater/widget.cpp b/updater/widget.cpp index 8cfe0b58a..940af6c33 100644 --- a/updater/widget.cpp +++ b/updater/widget.cpp @@ -118,6 +118,11 @@ void Widget::update() for (UpdateFileMeta fileMeta : diff) if (!QFile::exists(updateDirStr+fileMeta.installpath)) fatalError(tr("The update is incomplete.")); + + if (diff.size() == 0){ + fatalError(tr("The diff list is empty.")); + } + setProgress(5); /// 2. Check the update (5-50%)