summaryrefslogtreecommitdiff
path: root/ui/qt/capture_file.cpp
diff options
context:
space:
mode:
authorGerald Combs <gerald@wireshark.org>2015-05-22 14:01:31 -0700
committerGerald Combs <gerald@wireshark.org>2015-05-22 21:05:47 +0000
commitb25faac85d806d7f3977e194ca6f520da8e5c030 (patch)
tree262b1529cf77e740a5f4b1c8929eff826ee98ba5 /ui/qt/capture_file.cpp
parente9d8769d5b3bf16e0820f727a39abeee5430e2db (diff)
downloadwireshark-b25faac85d806d7f3977e194ca6f520da8e5c030.tar.gz
Qt: Add a "[closed]" hint to the packet dialog.
Try to make it more obvious that the file has closed. Ping-Bug: 11044 Change-Id: I76ae5724316c6fd9e7efdd817c39ac268b7d4dd0 Reviewed-on: https://code.wireshark.org/review/8593 Reviewed-by: Gerald Combs <gerald@wireshark.org>
Diffstat (limited to 'ui/qt/capture_file.cpp')
-rw-r--r--ui/qt/capture_file.cpp6
1 files changed, 3 insertions, 3 deletions
diff --git a/ui/qt/capture_file.cpp b/ui/qt/capture_file.cpp
index 8b2aacb20d..d580020e68 100644
--- a/ui/qt/capture_file.cpp
+++ b/ui/qt/capture_file.cpp
@@ -49,7 +49,7 @@ QString CaptureFile::no_capture_file_ = QObject::tr("[no capture file]");
CaptureFile::CaptureFile(QObject *parent, capture_file *cap_file) :
QObject(parent),
cap_file_(cap_file),
- file_title_(no_capture_file_),
+ file_name_(no_capture_file_),
file_state_(QString())
{
#ifdef HAVE_LIBPCAP
@@ -127,7 +127,7 @@ void CaptureFile::captureFileEvent(int event, gpointer data)
g_log(LOG_DOMAIN_MAIN, G_LOG_LEVEL_DEBUG, "Callback: Opened");
cap_file_ = (capture_file *) data;
QFileInfo cfi(QString::fromUtf8(cap_file_->filename));
- file_title_ = cfi.baseName();
+ file_name_ = cfi.baseName();
emit captureFileOpened();
break;
}
@@ -141,7 +141,7 @@ void CaptureFile::captureFileEvent(int event, gpointer data)
file_state_ = tr(" [closed]");
emit captureFileClosed();
cap_file_ = NULL;
- file_title_ = no_capture_file_;
+ file_name_ = no_capture_file_;
file_state_ = QString();
break;
case(cf_cb_file_read_started):