[prev in list] [next in list] [prev in thread] [next in thread] 

List:       kde-commits
Subject:    [networkmanagement] applet: Fix comparison with wrong enum type.
From:       Lamarque V. Souza <lamarque () kde ! org>
Date:       2013-02-13 18:01:39
Message-ID: 20130213180139.BC12CA6091 () git ! kde ! org
[Download RAW message or body]

Git commit 160b128c3eee950326c4778a583aa9b92d5c59a0 by Lamarque V. Souza.
Committed on 13/02/2013 at 19:01.
Pushed by lvsouza into branch 'master'.

Fix comparison with wrong enum type.

M  +1    -1    applet/interfacedetailswidget.cpp

http://commits.kde.org/networkmanagement/160b128c3eee950326c4778a583aa9b92d5c59a0

diff --git a/applet/interfacedetailswidget.cpp b/applet/interfacedetailswidget.cpp
index ff8d0e8..a63983f 100644
--- a/applet/interfacedetailswidget.cpp
+++ b/applet/interfacedetailswidget.cpp
@@ -586,7 +586,7 @@ void \
InterfaceDetailsWidget::handleConnectionStateChange(NetworkManager::Device:  } else {
         updateIPv4Details();
         details->connectionState = \
                static_cast<NetworkManager::Device::State>(new_state);
-        if (reason != NetworkManager::Device::Unavailable && m_iface->type() == \
NetworkManager::Device::Bluetooth) { +        if (new_state > \
NetworkManager::Device::Unavailable && m_iface->type() == \
NetworkManager::Device::Bluetooth) {  QString interfaceName = \
m_iface->ipInterfaceName();  if (interfaceName != details->interfaceName) {
                 // Hack to force updating interfaceName and traffic plot source.


[prev in list] [next in list] [prev in thread] [next in thread] 

Configure | About | News | Add a list | Sponsored by KoreLogic