[PC-BSD Commits] r7974 - pcbsd/current/src-qt4/libpcbsd
svn at pcbsd.org
svn at pcbsd.org
Tue Nov 2 12:55:38 PDT 2010
Author: kris
Date: 2010-11-02 12:55:38 -0700 (Tue, 02 Nov 2010)
New Revision: 7974
Modified:
pcbsd/current/src-qt4/libpcbsd/utils.cpp
Log:
Fixed bug when writing keys with setConfFileValue
Modified: pcbsd/current/src-qt4/libpcbsd/utils.cpp
===================================================================
--- pcbsd/current/src-qt4/libpcbsd/utils.cpp 2010-11-02 18:22:31 UTC (rev 7973)
+++ pcbsd/current/src-qt4/libpcbsd/utils.cpp 2010-11-02 19:55:38 UTC (rev 7974)
@@ -254,7 +254,7 @@
// Load the old file, find the oldKey, remove it and replace with newKey
QFile file( oFile );
- if ( file.open( QIODevice::ReadOnly ) )
+ if ( ! file.open( QIODevice::ReadOnly ) )
return false;
QTextStream stream( &file );
@@ -309,7 +309,7 @@
// Save the new file
QFile fileout( oFile );
- if ( fileout.open( QIODevice::WriteOnly ) )
+ if ( ! fileout.open( QIODevice::WriteOnly ) )
return false;
QTextStream streamout( &fileout );
More information about the Commits
mailing list