summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorAlbert Astals Cid <tsdgeos@terra.es>2012-06-24 18:08:18 (GMT)
committerAlbert Astals Cid <tsdgeos@terra.es>2012-06-24 18:09:12 (GMT)
commit64f2b10eb65b9345aedbb08ef338f4276bf7fc2b (patch)
tree0e3340ed03194daa39ca16e8b516e768416adf66
parent54b3cfb102d1198001d71b024039b24c0c166bfa (diff)
Do not update the last update time on failure
Because the code *should* work so it failing is exceptional and we don't want to cache the value
-rw-r--r--core/document.cpp4
1 files changed, 4 insertions, 0 deletions
diff --git a/core/document.cpp b/core/document.cpp
index f151a69..c1425d5 100644
--- a/core/document.cpp
+++ b/core/document.cpp
@@ -322,6 +322,10 @@ qulonglong DocumentPrivate::getFreeMemory()
else
memoryFree -= values[4];
}
+ else
+ {
+ return 0;
+ }
lastUpdate = QTime::currentTime();