summaryrefslogtreecommitdiff
path: root/src/history.cpp
diff options
context:
space:
mode:
Diffstat (limited to 'src/history.cpp')
-rw-r--r--src/history.cpp4
1 files changed, 4 insertions, 0 deletions
diff --git a/src/history.cpp b/src/history.cpp
index 409ac51b..da13b3d0 100644
--- a/src/history.cpp
+++ b/src/history.cpp
@@ -408,9 +408,13 @@ void HistoryManager::save()
if (saveAll)
{
if (historyFile.exists() && !historyFile.remove())
+ {
kWarning() << "History: error removing old history." << historyFile.errorString();
+ }
if (!tempFile.rename(historyFile.fileName()))
+ {
kWarning() << "History: error moving new history over old." << tempFile.errorString() << historyFile.fileName();
+ }
}
m_lastSavedUrl = m_history.value(0).url;
}