Browse Source

prevents division by 0 in updater

pull/845/head
Maximilian 11 years ago
parent
commit
03cfab8c50
  1. 5
      updater/widget.cpp

5
updater/widget.cpp

@ -118,6 +118,11 @@ void Widget::update() @@ -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%)

Loading…
Cancel
Save