Wireshark-commits: [Wireshark-commits] master-2.0 0ab1238: Qt: Fix testCaptureFileClose without pac

From: Wireshark code review <code-review-do-not-reply@xxxxxxxxxxxxx>
Date: Mon, 11 Jan 2016 07:45:24 +0000 (UTC)
URL: https://code.wireshark.org/review/gitweb?p=wireshark.git;a=commit;h=0ab123854af00abe6dd242d5b1c2771858db9f21
Submitter: Stig Bj?rlykke (stig@xxxxxxxxxxxxx)
Changed: branch: master-2.0
Repository: wireshark

Commits:

0ab1238 by Stig Bjørlykke (stig@xxxxxxxxxxxxx):

    Qt: Fix testCaptureFileClose without packets
    
    In MainWindow::testCaptureFileClose() we must always stop a running
    capture if closing, even if not having any packets, because
    cf_close() will fail (assert) if still in progress.
    
    This fixes an issue (crash) when closing the application with
    a running capture without packets.
    
    Bug: 11981
    Change-Id: Id0655fcc799682a4f45c855bc2e76386dffc35a5
    Reviewed-on: https://code.wireshark.org/review/13121
    Petri-Dish: Stig Bjørlykke <stig@xxxxxxxxxxxxx>
    Tested-by: Petri Dish Buildbot <buildbot-no-reply@xxxxxxxxxxxxx>
    Reviewed-by: Stig Bjørlykke <stig@xxxxxxxxxxxxx>
    Reviewed-on: https://code.wireshark.org/review/13172
    

Actions performed:

    from  142781a   Qt: Restore the filename in the status bar.
    adds  0ab1238   Qt: Fix testCaptureFileClose without packets


Summary of changes:
 ui/qt/main_window.cpp |   52 ++++++++++++++++++++++---------------------------
 1 file changed, 23 insertions(+), 29 deletions(-)