|
|
@ -92,8 +92,8 @@ void NetworkMenuItem::slotActivate()
|
|
|
|
NMProxy* nm = NMProxy::getInstance();
|
|
|
|
NMProxy* nm = NMProxy::getInstance();
|
|
|
|
if (nm)
|
|
|
|
if (nm)
|
|
|
|
{
|
|
|
|
{
|
|
|
|
kdDebug() << "Activate Connection " << d->conn->getObjectPath().data() << " on Device " << d->dev->getObjectPath().ascii() << endl;
|
|
|
|
kdDebug() << "Activate Connection " << d->conn->getObjectPath().ascii() << " on Device " << d->dev->getObjectPath().ascii() << endl;
|
|
|
|
printf("Activate Connection %s on Device %s\n", d->conn->getObjectPath().data(), d->dev->getObjectPath().ascii());
|
|
|
|
printf("Activate Connection %s on Device %s\n", d->conn->getObjectPath().ascii(), d->dev->getObjectPath().ascii());
|
|
|
|
|
|
|
|
|
|
|
|
#if NM_CHECK_VERSION(0,8,992)
|
|
|
|
#if NM_CHECK_VERSION(0,8,992)
|
|
|
|
if (nm->ActivateConnectionAsync(id, "org.freedesktop.NetworkManagerUserSettings", d->conn->getObjectPath(), TQT_DBusObjectPath(QCString(d->dev->getObjectPath())), d->conn->getObjectPath(), err))
|
|
|
|
if (nm->ActivateConnectionAsync(id, "org.freedesktop.NetworkManagerUserSettings", d->conn->getObjectPath(), TQT_DBusObjectPath(QCString(d->dev->getObjectPath())), d->conn->getObjectPath(), err))
|
|
|
@ -110,7 +110,7 @@ void NetworkMenuItem::slotActivate()
|
|
|
|
else if (d->conn)
|
|
|
|
else if (d->conn)
|
|
|
|
{
|
|
|
|
{
|
|
|
|
// no device given, just take the default device
|
|
|
|
// no device given, just take the default device
|
|
|
|
printf("Activate Connection %s on default device\n", d->conn->getObjectPath().data());
|
|
|
|
printf("Activate Connection %s on default device\n", d->conn->getObjectPath().ascii());
|
|
|
|
TQT_DBusObjectPath act_conn = nm->getDefaultActiveConnection();
|
|
|
|
TQT_DBusObjectPath act_conn = nm->getDefaultActiveConnection();
|
|
|
|
TQT_DBusObjectPath device = nm->getDeviceForActiveConnection(act_conn);
|
|
|
|
TQT_DBusObjectPath device = nm->getDeviceForActiveConnection(act_conn);
|
|
|
|
vpn_attempt_this_conn = d->conn->getObjectPath();
|
|
|
|
vpn_attempt_this_conn = d->conn->getObjectPath();
|
|
|
|