aboutsummaryrefslogtreecommitdiffstats
path: root/ui/qt/capture_file.h
diff options
context:
space:
mode:
authorGerald Combs <gerald@wireshark.org>2014-12-29 11:42:01 -0800
committerGerald Combs <gerald@wireshark.org>2014-12-30 03:34:03 +0000
commit4556498f337d1a9cc4284167526280efa00810b5 (patch)
tree393ba6e17a82f8973de06738cc644cc4fdc02b2b /ui/qt/capture_file.h
parentb6ff338e81d4e1f42f2ec8cb90409dc17422f6c6 (diff)
Qt: Convert more dialogs to WiresharkDialog.
Make the Sequence, IO Graph, Statistics Tree, and VoIP Calls dialogs subclasses of WiresharkDialog. Remove "Stats Tree" from Statistics Tree dialog titles. Don't complain if the user opens more than one instance of the dialog. Use the applicationName property in WiresharkApplication instead of a separate variable. Add a preexisting item to the IO Graph bug list (hovering when the file is closed clears the graph). Change-Id: I8411a25305d00b16e0d4a82fa50a9bad5c85b239 Reviewed-on: https://code.wireshark.org/review/6125 Reviewed-by: Gerald Combs <gerald@wireshark.org>
Diffstat (limited to 'ui/qt/capture_file.h')
-rw-r--r--ui/qt/capture_file.h2
1 files changed, 1 insertions, 1 deletions
diff --git a/ui/qt/capture_file.h b/ui/qt/capture_file.h
index 18186d80ed..08f51385a3 100644
--- a/ui/qt/capture_file.h
+++ b/ui/qt/capture_file.h
@@ -38,7 +38,7 @@ public:
explicit CaptureFile(QObject *parent = 0, capture_file *cap_file = NULL);
~CaptureFile();
- capture_file *capFile() const { return cap_file_; }
+ capture_file *capFile() const { return isValid() ? cap_file_ : NULL; }
void setCapFile(capture_file *cap_file) { cap_file_ = cap_file; }
/** Check capture file validity
*