diff options
author | Michele Calgaro <michele.calgaro@yahoo.it> | 2018-12-03 22:42:47 +0900 |
---|---|---|
committer | Michele Calgaro <michele.calgaro@yahoo.it> | 2018-12-03 22:42:47 +0900 |
commit | ec259d1e7d621683a6bcbb3e284c3cf7a50157c9 (patch) | |
tree | efe02fd8f984ddd5ffd279e1c4b754ed277b7eb9 /src/openvpnmanagementhandler.cpp | |
parent | bb9422313746429bf575490cb1dfcbf253236a1b (diff) | |
download | kvpnc-ec259d1e7d621683a6bcbb3e284c3cf7a50157c9.tar.gz kvpnc-ec259d1e7d621683a6bcbb3e284c3cf7a50157c9.zip |
Adapted to new KPasswordEdit::password() signature. This relates to bug 2961.git
Signed-off-by: Michele Calgaro <michele.calgaro@yahoo.it>
Diffstat (limited to 'src/openvpnmanagementhandler.cpp')
-rw-r--r-- | src/openvpnmanagementhandler.cpp | 8 |
1 files changed, 4 insertions, 4 deletions
diff --git a/src/openvpnmanagementhandler.cpp b/src/openvpnmanagementhandler.cpp index 1559816..85f0822 100644 --- a/src/openvpnmanagementhandler.cpp +++ b/src/openvpnmanagementhandler.cpp @@ -243,7 +243,7 @@ void OpenvpnManagementHandler::socketReadyRead() // GlobalConfig->appendLogEntry( "OpenvpnManagementHandler: " + i18n( "got %1 message" ).arg("'password'"), GlobalConfig->debug ); // // TQString req = line.section( TQRegExp( ".*'(.*)'.*" ), 0, 0 ); // $1; - // TQCString password; + // TQString password; // TQString pass = ""; // int result = KPasswordDialog::getPassword( password, TQString( req + i18n( " password:" ) ) ); // TQTextStream os( socket ); @@ -251,7 +251,7 @@ void OpenvpnManagementHandler::socketReadyRead() // if ( result == KPasswordDialog::Accepted ) { // if ( GlobalConfig->KvpncDebugLevel > 2 ) // GlobalConfig->appendLogEntry( "OpenvpnManagementHandler: " + i18n( "password got from user" ), GlobalConfig->debug ); - // pass = TQString( password ); + // pass = password; // // pass = pass.remove( '\r' ); // pass = pass.remove( '\n' ); @@ -331,7 +331,7 @@ void OpenvpnManagementHandler::socketReadyRead() { if ( GlobalConfig->TmpPassword.isEmpty() ) { - TQCString password; + TQString password; TQString pass = ""; int result = KPasswordDialog::getPassword( password, TQString( i18n( " password:" ) ) ); TQTextStream os( socket ); @@ -340,7 +340,7 @@ void OpenvpnManagementHandler::socketReadyRead() { if ( GlobalConfig->KvpncDebugLevel > 2 ) GlobalConfig->appendLogEntry( "OpenvpnManagementHandler: " + i18n( "password got from user" ), GlobalConfig->debug ); - GlobalConfig->TmpPassword = TQString( password ); + GlobalConfig->TmpPassword = password; // if ( GlobalConfig->KvpncDebugLevel > 5 ) |