diff options
author | Guy Harris <guy@alum.mit.edu> | 2018-07-03 17:51:30 -0700 |
---|---|---|
committer | Guy Harris <guy@alum.mit.edu> | 2018-07-04 00:52:08 +0000 |
commit | a442fd512bcf46e03ed4b8b40d756a2f17215fe6 (patch) | |
tree | dde05a7d575bd201a5c82b56c02922aba97528e8 /ui/qt/capture_file.h | |
parent | 9541945aa217a43d285e7b44b6c4516253f716a1 (diff) |
Set the file path for a main window if it's not a temporary file.
That's needed to support the "proxy icon", so it can be dragged.
Change-Id: I1ad209cd43a2a6df9c52d076f6513780b0ac51be
Reviewed-on: https://code.wireshark.org/review/28587
Reviewed-by: Guy Harris <guy@alum.mit.edu>
Diffstat (limited to 'ui/qt/capture_file.h')
-rw-r--r-- | ui/qt/capture_file.h | 20 |
1 files changed, 13 insertions, 7 deletions
diff --git a/ui/qt/capture_file.h b/ui/qt/capture_file.h index f5f3ad948f..f91a3351d9 100644 --- a/ui/qt/capture_file.h +++ b/ui/qt/capture_file.h @@ -43,6 +43,19 @@ public: */ int currentRow(); + /** Return the full pathname. + * + * @return The entire pathname. + */ + const QString filePath(); + + /** Return the plain filename. + * + * @return The last component of the pathname; this includes the + * extension. + */ + const QString fileName(); + /** Return a string representing the file suitable for use in a * window title. * @@ -64,12 +77,6 @@ public: */ const QString fileTitle(); - /** Return the plain filename. - * - * @return The basename of the capture file without an extension. - */ - const QString fileName(); - /** Return the current packet information. * * @return A pointer to the current packet_info struct or NULL. @@ -130,7 +137,6 @@ private: static QString no_capture_file_; capture_file *cap_file_; - QString file_name_; QString file_state_; }; |