diff options
author | Michal Labedzki <michal.labedzki@tieto.com> | 2015-09-25 11:05:45 +0200 |
---|---|---|
committer | Gerald Combs <gerald@wireshark.org> | 2015-10-27 16:45:19 +0000 |
commit | 78978ec63fc09c644131ce2472eec5fcf405b588 (patch) | |
tree | 7861ded888e287869703b8d3b8d5689102814079 /ui/qt/capture_file.cpp | |
parent | 08e44b8b43ad4234a93b8feaa8e8174373188080 (diff) |
Qt: Protect against unintentional "no capture file" window status
If capture file was closed and we have some WiresharkDialogs opened,
then we still need to know filename of capture file
related to specific dialog.
Change-Id: I15f0e5176b87713bf747eead64021619d0bdf039
Reviewed-on: https://code.wireshark.org/review/11025
Petri-Dish: Michal Labedzki <michal.labedzki@tieto.com>
Reviewed-by: Gerald Combs <gerald@wireshark.org>
Tested-by: Gerald Combs <gerald@wireshark.org>
Diffstat (limited to 'ui/qt/capture_file.cpp')
-rw-r--r-- | ui/qt/capture_file.cpp | 3 |
1 files changed, 1 insertions, 2 deletions
diff --git a/ui/qt/capture_file.cpp b/ui/qt/capture_file.cpp index 92b9677fcf..e7860c4768 100644 --- a/ui/qt/capture_file.cpp +++ b/ui/qt/capture_file.cpp @@ -84,9 +84,8 @@ const QString CaptureFile::fileName() if (isValid()) { QFileInfo cfi(QString::fromUtf8(cap_file_->filename)); file_name_ = cfi.baseName(); - } else { - file_name_ = no_capture_file_; } + return file_name_; } |