Commit 0ac85eea authored by Jan Möbius's avatar Jan Möbius

Continue on errors

git-svn-id: http://www.openflipper.org/svnrepo/OpenFlipper/branches/Free@3539 383ad7c9-94d9-4d36-a494-682f7c89f535
parent fc495f73
......@@ -459,20 +459,28 @@ void OptionsWidget::updateComponent() {
if ( ! sourceFileInfo.exists() ) {
statusLabel->setText("Download failed!");
slotGetUpdates();
return;
} else {
if ( ! targetFileInfo.exists() ) {
statusLabel->setText("plugin target does not exist");
slotGetUpdates();
return;
}
statusLabel->setText("Installing new file");
// Remove the old plugin
QFile targetFile(targetName);
targetFile.remove();
// copy new to old
QFile::copy(sourceName,targetName);
// remove downloaded file
QFile sourceFile(sourceName);
sourceFile.remove();
statusLabel->setText("updated " + currentUpdateName_);
}
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment