diff options
-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(); |