summaryrefslogtreecommitdiff
path: root/rbutil/rbutilqt/base/bootloaderinstallhex.cpp
diff options
context:
space:
mode:
Diffstat (limited to 'rbutil/rbutilqt/base/bootloaderinstallhex.cpp')
-rw-r--r--rbutil/rbutilqt/base/bootloaderinstallhex.cpp16
1 files changed, 14 insertions, 2 deletions
diff --git a/rbutil/rbutilqt/base/bootloaderinstallhex.cpp b/rbutil/rbutilqt/base/bootloaderinstallhex.cpp
index 3ff9c70936..3fdfba6c8a 100644
--- a/rbutil/rbutilqt/base/bootloaderinstallhex.cpp
+++ b/rbutil/rbutilqt/base/bootloaderinstallhex.cpp
@@ -19,6 +19,7 @@
19#include <QtCore> 19#include <QtCore>
20#include "bootloaderinstallbase.h" 20#include "bootloaderinstallbase.h"
21#include "bootloaderinstallhex.h" 21#include "bootloaderinstallhex.h"
22#include "utils.h"
22 23
23#include "../../tools/iriver.h" 24#include "../../tools/iriver.h"
24#include "../../tools/mkboot.h" 25#include "../../tools/mkboot.h"
@@ -209,9 +210,20 @@ void BootloaderInstallHex::installStage2(void)
209 return; 210 return;
210 } 211 }
211 // finally copy file to player 212 // finally copy file to player
212 targethex.copy(m_blfile); 213 if(!Utils::resolvePathCase(m_blfile).isEmpty()) {
214 emit logItem(tr("A firmware file is already present on player"), LOGERROR);
215 emit done(true);
216 return;
217 }
218 if(targethex.copy(m_blfile)) {
219 emit logItem(tr("Success: modified firmware file created"), LOGINFO);
220 }
221 else {
222 emit logItem(tr("Copying modified firmware file failed"), LOGERROR);
223 emit done(true);
224 return;
225 }
213 226
214 emit logItem(tr("Success: modified firmware file created"), LOGINFO);
215 logInstall(LogAdd); 227 logInstall(LogAdd);
216 emit done(false); 228 emit done(false);
217 229