From 05712da90682fed84e2ecf7e3037d8aed29ecf83 Mon Sep 17 00:00:00 2001 From: Alex Borisov Date: Sun, 18 Mar 2012 11:48:02 +0200 Subject: FIX: non-ASCII static proxy election problem. ADD new client icon --- client/Dialog.cpp | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) (limited to 'client/Dialog.cpp') diff --git a/client/Dialog.cpp b/client/Dialog.cpp index e109391..3ae26aa 100644 --- a/client/Dialog.cpp +++ b/client/Dialog.cpp @@ -207,7 +207,7 @@ void ProxyDialog::StaticProxyToggled(bool on) QVariant propVal = btn->property("proxyName"); QString proxyName = propVal.toString(); Logger::Debug("Static Proxy button toggled\n"); - Logger::Debug("State '%s', associated proxy name: %s\n", on ? "down" : "up", proxyName.toStdString().c_str()); + Logger::Debug("State '%s', associated proxy name: %s\n", on ? "down" : "up", proxyName.toLocal8Bit().data()); if (!on) { @@ -215,11 +215,11 @@ void ProxyDialog::StaticProxyToggled(bool on) } UpdatedConfig *cfg = UpdatedConfig::CurrentConfig(); - string name = proxyName.toStdString(); + string name = proxyName.toLocal8Bit().data(); ProxyEntryStatic* proxy = cfg->GetStaticProxy(name); - if (proxy == NULL) + if (proxy == NULL) { - Logger::Error("Static proxy with name '%s' was not found\n", proxyName.toStdString().c_str()); + Logger::Error("Static proxy with name '%s' was not found\n", proxyName.toLocal8Bit().data()); return; } -- cgit v1.2.3