Skip to content

Commit

Permalink
Browse files Browse the repository at this point in the history
[developermode] Fix typo (usbIpAddress <-> usbInterface)
This bug prevented the IP address from being correctly passed from the
usb_moded D-Bus service to the developer mode settings UI, as
m_usbIpAddress was never set to the right value.
  • Loading branch information
Thomas Perl committed Oct 28, 2013
1 parent 9171232 commit 00ef736
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions src/developermodesettings.cpp
Expand Up @@ -384,15 +384,15 @@ DeveloperModeSettings::refresh()
QString usbIp = usb_moded_get_config(m_usbModeDaemon,
USB_MODED_CONFIG_IP, USB_NETWORK_FALLBACK_IP);
if (usbIp != m_usbIpAddress) {
m_usbInterface = usbIp;
m_usbIpAddress = usbIp;
emit usbIpAddressChanged();
}

/* Retrieve network configuration from interfaces */
QMap<QString,QString> entries = enumerate_network_interfaces();

if (entries.contains(m_usbInterface)) {
QString ip = entries[m_usbIpAddress];
QString ip = entries[m_usbInterface];
if (m_usbIpAddress != ip) {
m_usbIpAddress = ip;
emit usbIpAddressChanged();
Expand Down

0 comments on commit 00ef736

Please sign in to comment.