summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorSlávek Banko <slavek.banko@axis.cz>2013-02-25 01:34:04 +0100
committerSlávek Banko <slavek.banko@axis.cz>2013-02-25 01:34:04 +0100
commit5f69e1948fb586308b1352899f4e29b9b9e8f391 (patch)
treef178035be5f172ef9d0e961435824dc87c090fde
parentf9af3e67d7a75b693cd7bccfc5c68505c93c0fac (diff)
downloadkvpnc-5f69e194.tar.gz
kvpnc-5f69e194.zip
Fix unintended rename of Pskfile
-rw-r--r--src/kvpnc.cpp10
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();