Wireshark-commits: [Wireshark-commits] master-2.2 8abe4d6: Qt: Preference editor improvements.

From: Wireshark code review <code-review-do-not-reply@xxxxxxxxxxxxx>
Date: Sat, 28 Jan 2017 03:52:46 +0000 (UTC)
URL: https://code.wireshark.org/review/gitweb?p=wireshark.git;a=commit;h=8abe4d6f80d2b03cc5d469fccdfc8987fd23b649
Submitter: Anders Broman (a.broman58@xxxxxxxxx)
Changed: branch: master-2.2
Repository: wireshark

Commits:

8abe4d6 by Stig Bjørlykke (stig@xxxxxxxxxxxxx):

    Qt: Preference editor improvements.
    
    Use correct disconnect() signature to ensure everything is disconnected
    before connecting new signals.  Without this all previous connects() are
    still active.  This leads to gradually more and more syntax checks being
    called for each change, and possibility of a wrong syntax check
    (especially for strings which has no syntax check).
    
    Use the textEdited() signal to trigger a syntax check at startup.
    This gives consistency.
    
    Do not clear preferenceLineEdit when done because it looks weird when
    the preference text disappears while the widget is hiding.  The entry
    is cleared before next show anyway.
    
    Change-Id: I21c6fd8ec6bb0ecff1b2c0b66fe97dc3eaecf9b3
    Reviewed-on: https://code.wireshark.org/review/19788
    Petri-Dish: Stig Bjørlykke <stig@xxxxxxxxxxxxx>
    Tested-by: Petri Dish Buildbot <buildbot-no-reply@xxxxxxxxxxxxx>
    Reviewed-by: Anders Broman <a.broman58@xxxxxxxxx>
    (cherry picked from commit 87f4dc0a9d22060d379db2daa3f4271137a4edcc)
    Reviewed-on: https://code.wireshark.org/review/19817
    

Actions performed:

    from  262da1c   prefs: Preserve UTF-8 characters in preferences.
    adds  8abe4d6   Qt: Preference editor improvements.


Summary of changes:
 ui/qt/preference_editor_frame.cpp |   13 ++++---------
 1 file changed, 4 insertions(+), 9 deletions(-)