diff options
author | Slávek Banko <slavek.banko@axis.cz> | 2013-02-25 01:34:04 +0100 |
---|---|---|
committer | Slávek Banko <slavek.banko@axis.cz> | 2013-02-25 01:34:04 +0100 |
commit | 5f69e1948fb586308b1352899f4e29b9b9e8f391 (patch) | |
tree | f178035be5f172ef9d0e961435824dc87c090fde /src/kvpnc.cpp | |
parent | f9af3e67d7a75b693cd7bccfc5c68505c93c0fac (diff) | |
download | kvpnc-5f69e1948fb586308b1352899f4e29b9b9e8f391.tar.gz kvpnc-5f69e1948fb586308b1352899f4e29b9b9e8f391.zip |
Fix unintended rename of Pskfile
Diffstat (limited to 'src/kvpnc.cpp')
-rw-r--r-- | src/kvpnc.cpp | 10 |
1 files changed, 5 insertions, 5 deletions
diff --git a/src/kvpnc.cpp b/src/kvpnc.cpp index 898b6ff..2883723 100644 --- a/src/kvpnc.cpp +++ b/src/kvpnc.cpp @@ -5145,16 +5145,16 @@ void KVpnc::connectClicked() if ( GlobalConfig->currentProfile->getAuthType() == VpnAccountData::psk ) { // write psk.<profile>.key - TQFile Pstdefile ( tmpPath + "psk." + ProfileName + ".key" ); - stream.setDevice ( &Pstdefile ); - if ( Pstdefile.open ( IO_WriteOnly ) ) + TQFile Pskfile ( tmpPath + "psk." + ProfileName + ".key" ); + stream.setDevice ( &Pskfile ); + if ( Pskfile.open ( IO_WriteOnly ) ) { stream << GlobalConfig->currentProfile->getPreSharedKey() << "\n"; - Pstdefile.close(); + Pskfile.close(); } else { - GlobalConfig->appendLogEntry ( i18n ( "%1 could not opened. Stop." ).arg ( Pstdefile.name() ),GlobalConfig->error ); + GlobalConfig->appendLogEntry ( i18n ( "%1 could not opened. Stop." ).arg ( Pskfile.name() ),GlobalConfig->error ); } stream.unsetDevice(); |