projects
/
harmattan
/
cameraplus
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
9ede7d4
)
Remove temporarily file after we open it
author
Mohammed Sameer
<msameer@foolab.org>
Mon, 4 Feb 2013 08:55:51 +0000
(10:55 +0200)
committer
Mohammed Sameer
<msameer@foolab.org>
Mon, 4 Feb 2013 08:55:51 +0000
(10:55 +0200)
This avoids leaving stall files if anything happens
src/mountprotector.cpp
patch
|
blob
|
history
diff --git
a/src/mountprotector.cpp
b/src/mountprotector.cpp
index
05ce4ba
..
619cdff
100644
(file)
--- a/
src/mountprotector.cpp
+++ b/
src/mountprotector.cpp
@@
-62,6
+62,10
@@
bool MountProtector::lock() {
return false;
}
+ if (!QFile::remove(m_file->fileName())) {
+ qmlInfo(this) << "Failed to remove temporarily file" << m_file->fileName();
+ }
+
return true;
}