Wireshark-commits: [Wireshark-commits] master-2.6 fa2ed52: Qt: use toLocalFile() instead of path()
From: Wireshark code review <code-review-do-not-reply@xxxxxxxxxxxxx>
Date: Wed, 10 Apr 2019 02:57:16 +0000
URL: https://code.wireshark.org/review/gitweb?p=wireshark.git;a=commit;h=fa2ed52bfff759e426fc8cb5aaa1e66d9a1c48f9
Submitter: "Guy Harris <guy@xxxxxxxxxxxx>"
Changed: branch: master-2.6
Repository: wireshark

Commits:

fa2ed52 by Dario Lombardo (lomato@xxxxxxxxx):

    Qt: use toLocalFile() instead of path() to check for existence.
    
    path() incorrectly gives paths as /C:/Program Files/Wireshark/udpdump.html
    under windows. The leading slash gives a wrong test on the file. Instead
    toLocalFile() handles it correctly. isLocalFile() has been used to get if
    we have a local file or a network URL. The reported bug occurred under Windows
    only, but the change is compatible with Linux paths as well.
    
    Accidentally when the test on the file was successful, nothing got called.
    The routine has been reworked to open an existing local file.
    
    Bug: 15592
    Change-Id: Id6e3a91dfb4c9d20ae8cb0735eabab64caeff47f
    Reviewed-on: https://code.wireshark.org/review/32772
    Petri-Dish: Dario Lombardo <lomato@xxxxxxxxx>
    Tested-by: Petri Dish Buildbot
    Reviewed-by: Guy Harris <guy@xxxxxxxxxxxx>
    Reviewed-by: Alexis La Goutte <alexis.lagoutte@xxxxxxxxx>
    (cherry picked from commit 4dda4bac178debe04eac081aa23a951e807f6d31)
    Reviewed-on: https://code.wireshark.org/review/32806
    

Actions performed:

    from  771a51f   ieee80211: fix wrong offset for mesh configuration capability bitmask
     add  fa2ed52   Qt: use toLocalFile() instead of path() to check for existence.


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