Check for bootloader file on device before copying.
commitb623b97d4084f1dc0d92da8d932833004e331982
authorDominik Riebeling <Dominik.Riebeling@gmail.com>
Thu, 26 Apr 2012 19:17:00 +0000 (26 21:17 +0200)
committerDominik Riebeling <Dominik.Riebeling@gmail.com>
Thu, 26 Apr 2012 19:19:56 +0000 (26 21:19 +0200)
treefe5fdafd68ad3c7508f41285993548de783cbe9c
parent07798ae5266d1384330d66c24ff8743d90b29340
Check for bootloader file on device before copying.

QFile::copy() doesn't overwrite an already existing file. This can lead to
bootloader installation trying to place a new file on the player but failing to
do the actual copy if the file already exists. Since overwriting an already
existing file might be unexpected by the user error out in this case and notify
the user.

Change-Id: I5ffaf2f1344271ea2bad9e3232234826552385ec
rbutil/rbutilqt/base/bootloaderinstallfile.cpp