Insure Qt Capture preferences dialog displays default capture device (if any)
authorJim Young <jyoung@gsu.edu>
Fri, 10 Jul 2015 05:50:19 +0000 (01:50 -0400)
committerHadriel Kaplan <hadrielk@yahoo.com>
Sat, 29 Aug 2015 14:06:24 +0000 (14:06 +0000)
commit0badc8c38e56e60bdd5d4fd95f78486234067a16
tree923c1d1347a6a554f8982ba271de56084231cfe8
parent51e77b6335a5712c3f28e148345db42296c726ae
Insure Qt Capture preferences dialog displays default capture device (if any)

In CapturePreferencesFrame::updateWidgets() save and restore the default
capture device name because the first call (and only the first call) in
the loop with addItem() triggers on_defaultInterfaceComboBox_editTextChanged()
which unconditionally sets the default name as the first non-hidden device.

Bug: 10965
Change-Id: Ie93f84010a19e8144efa46ce889fb9064979e0e9
Reviewed-on: https://code.wireshark.org/review/9584
Reviewed-by: Gerald Combs <gerald@wireshark.org>
Petri-Dish: Gerald Combs <gerald@wireshark.org>
Tested-by: Petri Dish Buildbot <buildbot-no-reply@wireshark.org>
Reviewed-by: Hadriel Kaplan <hadrielk@yahoo.com>
ui/qt/capture_preferences_frame.cpp