Skip to content

Commit

Permalink
Respect cancel btn in Installer::downloadImage()
Browse files Browse the repository at this point in the history
Fixes #13
  • Loading branch information
Risca committed Nov 15, 2014
1 parent 0a6a07a commit 0f2eff9
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion installer.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -395,10 +395,11 @@ void Installer::downloadImage()

newFileName = savedir +QDir::separator ()+ newFileName + ".img.gz";

if (newFileName.isEmpty()) {
if (savedir.isEmpty() || newFileName.isEmpty()) {
reset();
return;
}
qDebug() << "Downloading to" << newFileName;

if (imageFile.isOpen())
imageFile.close();
Expand Down

0 comments on commit 0f2eff9

Please sign in to comment.