summaryrefslogtreecommitdiffabout
path: root/kabc/plugins
authorzautrix <zautrix>2005-04-04 11:29:55 (UTC)
committer zautrix <zautrix>2005-04-04 11:29:55 (UTC)
commit23db4aa99cb7a5feb540b6be578efaee8ec6ef80 (patch) (unidiff)
treef60d08e53dc09cf8a9ca901697797de9cf5dc669 /kabc/plugins
parent69a388bdef8d4a31063f983735d2b7d25775f3cf (diff)
downloadkdepimpi-23db4aa99cb7a5feb540b6be578efaee8ec6ef80.zip
kdepimpi-23db4aa99cb7a5feb540b6be578efaee8ec6ef80.tar.gz
kdepimpi-23db4aa99cb7a5feb540b6be578efaee8ec6ef80.tar.bz2
sync fixes
Diffstat (limited to 'kabc/plugins') (more/less context) (ignore whitespace changes)
-rw-r--r--kabc/plugins/file/resourcefile.cpp2
1 files changed, 1 insertions, 1 deletions
diff --git a/kabc/plugins/file/resourcefile.cpp b/kabc/plugins/file/resourcefile.cpp
index af76558..2bd9e71 100644
--- a/kabc/plugins/file/resourcefile.cpp
+++ b/kabc/plugins/file/resourcefile.cpp
@@ -192,25 +192,25 @@ bool ResourceFile::doOpen()
192 192
193 if ( !file.exists() ) { 193 if ( !file.exists() ) {
194 // try to create the file 194 // try to create the file
195 bool ok = file.open( IO_WriteOnly ); 195 bool ok = file.open( IO_WriteOnly );
196 if ( ok ) 196 if ( ok )
197 file.close(); 197 file.close();
198 198
199 return ok; 199 return ok;
200 } else { 200 } else {
201 if ( !file.open( IO_ReadWrite ) ) 201 if ( !file.open( IO_ReadWrite ) )
202 return false; 202 return false;
203 203
204 if ( file.size() == 0 ) { 204 if ( file.size() < 10 ) {
205 file.close(); 205 file.close();
206 return true; 206 return true;
207 } 207 }
208 208
209 bool ok = mFormat->checkFormat( &file ); 209 bool ok = mFormat->checkFormat( &file );
210 file.close(); 210 file.close();
211 211
212 return ok; 212 return ok;
213 } 213 }
214} 214}
215 215
216void ResourceFile::doClose() 216void ResourceFile::doClose()