From 47c56ecaf41ff1ed7fcf7447a0270e5b585f1716 Mon Sep 17 00:00:00 2001 From: Timothy Pearson Date: Sun, 7 Jul 2013 02:39:13 -0500 Subject: [PATCH] Fix network manager interface not returning active connections Add unclassified TI FlashMedia device --- tdecore/networkbackends/network-manager/network-manager.cpp | 4 ++-- tdecore/tdehardwaredevices.cpp | 3 +++ 2 files changed, 5 insertions(+), 2 deletions(-) diff --git a/tdecore/networkbackends/network-manager/network-manager.cpp b/tdecore/networkbackends/network-manager/network-manager.cpp index f29d7832c..ac07b8a1a 100644 --- a/tdecore/networkbackends/network-manager/network-manager.cpp +++ b/tdecore/networkbackends/network-manager/network-manager.cpp @@ -1909,7 +1909,7 @@ TDENetworkDeviceInformation TDENetworkConnectionManager_BackendNM::deviceInforma DBus::ActiveConnectionProxy activeConnection(NM_DBUS_SERVICE, connectionPath); activeConnection.setConnection(TQT_DBusConnection::systemBus()); ret.activeConnectionUUID = activeConnection.getUuid(error); - if (!error.isValid()) { + if (error.isValid()) { ret.activeConnectionUUID = TQString::null; } } @@ -1934,7 +1934,7 @@ TDENetworkDeviceInformation TDENetworkConnectionManager_BackendNM::deviceStatus( DBus::ActiveConnectionProxy activeConnection(NM_DBUS_SERVICE, connectionPath); activeConnection.setConnection(TQT_DBusConnection::systemBus()); ret.activeConnectionUUID = activeConnection.getUuid(error); - if (!error.isValid()) { + if (error.isValid()) { ret.activeConnectionUUID = TQString::null; } } diff --git a/tdecore/tdehardwaredevices.cpp b/tdecore/tdehardwaredevices.cpp index 49736d649..f7f90664d 100644 --- a/tdecore/tdehardwaredevices.cpp +++ b/tdecore/tdehardwaredevices.cpp @@ -3907,6 +3907,9 @@ TDEGenericDevice* TDEHardwareDevices::classifyUnknownDevice(udev_device* dev, TD if (!device) device = new TDEGenericDevice(TDEGenericDeviceType::Platform); } } + if (devicesubsystem == "tifm_adapter") { + if (!device) device = new TDEGenericDevice(TDEGenericDeviceType::StorageController); + } if (devicesubsystem == "mmc_host") { if (!device) device = new TDEGenericDevice(TDEGenericDeviceType::StorageController); }