Wireshark-commits: [Wireshark-commits] master 27f9606: Qt: fix display filter completion with few r

From: Wireshark code review <code-review-do-not-reply@xxxxxxxxxxxxx>
Date: Sun, 24 Nov 2019 18:28:29 +0000
URL: https://code.wireshark.org/review/gitweb?p=wireshark.git;a=commit;h=27f96069325ce84c825252d9cdf35538e57ce8d0
Submitter: "Peter Wu <peter@xxxxxxxxxxxxx>"
Changed: branch: master
Repository: wireshark

Commits:

27f9606 by Peter Wu (peter@xxxxxxxxxxxxx):

    Qt: fix display filter completion with few recent entries
    
    If 1) the recent filters menu has less than 10 entries and 2) the cursor
    position is not at the end of the filter, then completion would fail.
    Additionally, pressing Enter on filters with syntax errors would also
    end up being saved, unintentionally.
    
    Fix these by disabling automatic addition of entries by Qt.
    
    Change-Id: I612c6cb8f317beb5459919b5c65b837db6150d07
    Reviewed-on: https://code.wireshark.org/review/35150
    Petri-Dish: Peter Wu <peter@xxxxxxxxxxxxx>
    Tested-by: Petri Dish Buildbot
    Reviewed-by: Peter Wu <peter@xxxxxxxxxxxxx>
    

Actions performed:

    from  a700bb9   [Automatic update for 2019-11-24]
     add  27f9606   Qt: fix display filter completion with few recent entries


Summary of changes:
 ui/qt/widgets/display_filter_combo.cpp | 5 +++++
 1 file changed, 5 insertions(+)