summaryrefslogtreecommitdiffstats
path: root/rbutil/rbutilqt/base/bootloaderinstallfile.cpp
diff options
context:
space:
mode:
authorDominik Riebeling <Dominik.Riebeling@gmail.com>2010-03-15 21:21:04 +0000
committerDominik Riebeling <Dominik.Riebeling@gmail.com>2010-03-15 21:21:04 +0000
commit9db98bb864c969cdbffd7081e49994ca31cc3084 (patch)
tree025d9c14a2036752fd86fe52dc7ec72c2efa6f3f /rbutil/rbutilqt/base/bootloaderinstallfile.cpp
parentd0ea5673ea3af8b90c67f9f4982d9bd45ee0ca48 (diff)
downloadrockbox-9db98bb864c969cdbffd7081e49994ca31cc3084.tar.gz
rockbox-9db98bb864c969cdbffd7081e49994ca31cc3084.tar.bz2
rockbox-9db98bb864c969cdbffd7081e49994ca31cc3084.zip
Fix bootloader files vanishing after installation (FS#11086).
QTemporaryFile creates temporary files, so they might get removed even if they are renamed. Copy the downloaded temporary file instead. git-svn-id: svn://svn.rockbox.org/rockbox/trunk@25208 a1c6a512-1295-4272-9138-f99709370657
Diffstat (limited to 'rbutil/rbutilqt/base/bootloaderinstallfile.cpp')
-rw-r--r--rbutil/rbutilqt/base/bootloaderinstallfile.cpp2
1 files changed, 1 insertions, 1 deletions
diff --git a/rbutil/rbutilqt/base/bootloaderinstallfile.cpp b/rbutil/rbutilqt/base/bootloaderinstallfile.cpp
index 0db39a5be3..2e7061036d 100644
--- a/rbutil/rbutilqt/base/bootloaderinstallfile.cpp
+++ b/rbutil/rbutilqt/base/bootloaderinstallfile.cpp
@@ -84,7 +84,7 @@ void BootloaderInstallFile::installStage2(void)
m_tempfile.open();
qDebug() << "[BootloaderInstallFile] renaming" << m_tempfile.fileName() << "to" << fwfile;
m_tempfile.close();
- m_tempfile.rename(fwfile);
+ m_tempfile.copy(fwfile);
emit logItem(tr("Bootloader successful installed"), LOGOK);
logInstall(LogAdd);