From 0e01e11717010a142b947204ab7ba914139e2f22 Mon Sep 17 00:00:00 2001 From: Albert Astals Cid Date: Sun, 24 Jun 2012 20:08:18 +0200 Subject: [PATCH] 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 --- core/document.cpp | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/core/document.cpp b/core/document.cpp index f6e815d1a..d910ce3b2 100644 --- a/core/document.cpp +++ b/core/document.cpp @@ -326,6 +326,10 @@ qulonglong DocumentPrivate::getFreeMemory() else memoryFree -= values[4]; } + else + { + return 0; + } lastUpdate = QTime::currentTime();