summaryrefslogtreecommitdiffabout
Side-by-side diff
Diffstat (more/less context) (ignore whitespace changes)
-rw-r--r--pwmanager/pwmanager/pwmdoc.cpp2
1 files changed, 1 insertions, 1 deletions
diff --git a/pwmanager/pwmanager/pwmdoc.cpp b/pwmanager/pwmanager/pwmdoc.cpp
index 36b0df5..1f3c58b 100644
--- a/pwmanager/pwmanager/pwmdoc.cpp
+++ b/pwmanager/pwmanager/pwmdoc.cpp
@@ -438,3 +438,3 @@ PwMerror PwMDoc::saveDoc(char compress, const QString *file)
bool b_enabled = config.readBoolEntry( "BackupEnabled" );
- if ( b_enabled ) {
+ if ( b_enabled && QFile::exists(filename)) {
int num = config.readNumEntry( "BackupNumbers" );