Jan Grulich
2015-12-17 13:28:13 UTC
-----------------------------------------------------------
This is an automatically generated e-mail. To reply, visit:
https://git.reviewboard.kde.org/r/126398/
-----------------------------------------------------------
Review request for Network Management and Lamarque Souza.
Repository: plasma-nm
Description
-------
1) This patch improves SsidCombobox to send ssidChanged() signal just once and not three times as it was before. Previously this signal was send in onCurrentIndexChanged() (second call) which calls setEditText() and thus editTextChanged() sent it one more time (third call) and the very first one was again in editTextChanged() which was called internally once user picked up any SSID from the combobox and this one included the ugly SSID name in format "ssid (%xx), Security: foo, Frequency: bar" which is the reason why I added check for this text in editTextChanged() to avoid sending this one. Another improvement in SsidCombobox is that it nows properly reloads BSSID combobox once SSID is changed by either selecting any SSID from the list or by writing any text into the SSID field.
2) Adds detection for wireless security based on selected SSID
Diffs
-----
libs/editor/connectiondetaileditor.cpp 7370bbb
libs/editor/settings/wificonnectionwidget.h a111b7a
libs/editor/settings/wificonnectionwidget.cpp a36b661
libs/editor/widgets/ssidcombobox.h 3e367e7
libs/editor/widgets/ssidcombobox.cpp 472384f
libs/editor/settings/wifisecurity.h 2bef9c5
libs/editor/settings/wifisecurity.cpp a6c252e
Diff: https://git.reviewboard.kde.org/r/126398/diff/
Testing
-------
Tested with all security types (WEP/WPA/WPA Enterprise) and seems to work, also the SSID combobox now sends the ssidChanged() signal just once with correct SSID.
Thanks,
Jan Grulich
This is an automatically generated e-mail. To reply, visit:
https://git.reviewboard.kde.org/r/126398/
-----------------------------------------------------------
Review request for Network Management and Lamarque Souza.
Repository: plasma-nm
Description
-------
1) This patch improves SsidCombobox to send ssidChanged() signal just once and not three times as it was before. Previously this signal was send in onCurrentIndexChanged() (second call) which calls setEditText() and thus editTextChanged() sent it one more time (third call) and the very first one was again in editTextChanged() which was called internally once user picked up any SSID from the combobox and this one included the ugly SSID name in format "ssid (%xx), Security: foo, Frequency: bar" which is the reason why I added check for this text in editTextChanged() to avoid sending this one. Another improvement in SsidCombobox is that it nows properly reloads BSSID combobox once SSID is changed by either selecting any SSID from the list or by writing any text into the SSID field.
2) Adds detection for wireless security based on selected SSID
Diffs
-----
libs/editor/connectiondetaileditor.cpp 7370bbb
libs/editor/settings/wificonnectionwidget.h a111b7a
libs/editor/settings/wificonnectionwidget.cpp a36b661
libs/editor/widgets/ssidcombobox.h 3e367e7
libs/editor/widgets/ssidcombobox.cpp 472384f
libs/editor/settings/wifisecurity.h 2bef9c5
libs/editor/settings/wifisecurity.cpp a6c252e
Diff: https://git.reviewboard.kde.org/r/126398/diff/
Testing
-------
Tested with all security types (WEP/WPA/WPA Enterprise) and seems to work, also the SSID combobox now sends the ssidChanged() signal just once with correct SSID.
Thanks,
Jan Grulich