Diffstat (limited to 'inputmethods/handwriting/qimpenchar.cpp') (more/less context) (ignore whitespace changes)
-rw-r--r-- | inputmethods/handwriting/qimpenchar.cpp | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/inputmethods/handwriting/qimpenchar.cpp b/inputmethods/handwriting/qimpenchar.cpp index db5d135..b83b2a4 100644 --- a/inputmethods/handwriting/qimpenchar.cpp +++ b/inputmethods/handwriting/qimpenchar.cpp | |||
@@ -383,26 +383,26 @@ bool QIMPenCharSet::save( Domain d ) | |||
383 | ds << *pc; | 383 | ds << *pc; |
384 | } | 384 | } |
385 | } | 385 | } |
386 | 386 | ||
387 | file.writeBlock( buf ); | 387 | file.writeBlock( buf ); |
388 | file.close(); | 388 | file.close(); |
389 | if ( file.status() == IO_Ok ) | 389 | if ( file.status() == IO_Ok ) |
390 | ok = TRUE; | 390 | ok = TRUE; |
391 | } | 391 | } |
392 | 392 | ||
393 | if ( ok ) { | 393 | if ( ok ) { |
394 | if ( ::rename( tmpFn.latin1(), fn.latin1() ) < 0 ) { | 394 | if ( ::rename( tmpFn.latin1(), fn.latin1() ) < 0 ) { |
395 | qWarning( "problem renaming file %s to %s, errno: %d", | 395 | owarn << "problem renaming file " <<tmpFn.latin1() << " to "<< fn.latin1() |
396 | tmpFn.latin1(), fn.latin1(), errno ); | 396 | << ", errno: " << errno << oendl; |
397 | // remove the tmp file, otherwise, it will just lay around... | 397 | // remove the tmp file, otherwise, it will just lay around... |
398 | QFile::remove( tmpFn.latin1() ); | 398 | QFile::remove( tmpFn.latin1() ); |
399 | ok = FALSE; | 399 | ok = FALSE; |
400 | } | 400 | } |
401 | } | 401 | } |
402 | 402 | ||
403 | return ok; | 403 | return ok; |
404 | } | 404 | } |
405 | 405 | ||
406 | QIMPenChar *QIMPenCharSet::at( int i ) | 406 | QIMPenChar *QIMPenCharSet::at( int i ) |
407 | { | 407 | { |
408 | return chars.at(i); | 408 | return chars.at(i); |