summaryrefslogtreecommitdiff
path: root/client/Dialog.cpp
diff options
context:
space:
mode:
authorAlex Borisov <b0ric.alex@gmail.com>2012-03-18 11:48:02 +0200
committerAlex Borisov <b0ric.alex@gmail.com>2012-03-18 11:48:02 +0200
commit05712da90682fed84e2ecf7e3037d8aed29ecf83 (patch)
tree57eec65bc705d01432480ace10ad47f5153a0fd8 /client/Dialog.cpp
parent9979c02af80fe1983aa92dd9827c85381cf09fce (diff)
FIX: non-ASCII static proxy election problem. ADD new client icon
Diffstat (limited to 'client/Dialog.cpp')
-rw-r--r--client/Dialog.cpp8
1 files changed, 4 insertions, 4 deletions
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;
}