upper case plink.exe

This commit is contained in:
Vadim Kurland
2008-09-11 05:41:35 +00:00
parent 744eff1ac9
commit e850aa6b59
2 changed files with 7 additions and 2 deletions
+5
View File
@@ -1,5 +1,10 @@
2008-09-10 Vadim Kurland <vadim@vk.crocodile.org>
* instDialog.cpp (instDialog::initiateCopy): fixed bug (no #): if
the name of the plink.exe program was specified in upper case in
Preferences dialog, built-in installer failed to provide correct
command line options to it.
* ObjectManipulator.cpp (ObjectManipulator::getMenuState): fixed
bug #2100415: "cannot re-create or clone Routing object". The GUI
does not let the user to delete Routing object. Policy and NAT
+2 -2
View File
@@ -851,7 +851,7 @@ bool instDialog::doInstallPage(Firewall* f)
* use current Windows account name to log in to the firewall and this
* is unlikely to work anyway. This seems to be a decent workaround.
*/
if (!cnf.user.isEmpty() && ssh.indexOf("plink.exe")!=-1)
if (!cnf.user.isEmpty() && ssh.toLower().indexOf("plink.exe")!=-1)
{
args.push_back("-ssh");
args.push_back("-pw");
@@ -1165,7 +1165,7 @@ void instDialog::initiateCopy(const QString &file)
#ifdef _WIN32
args.push_back(ssh);
if (!cnf.user.isEmpty() && ssh.indexOf("plink.exe")!=-1)
if (!cnf.user.isEmpty() && ssh.toLower().indexOf("plink.exe")!=-1)
{
args.push_back("-ssh");
args.push_back("-pw");