diff options
author | Guy Harris <guy@alum.mit.edu> | 2013-04-01 17:57:47 +0000 |
---|---|---|
committer | Guy Harris <guy@alum.mit.edu> | 2013-04-01 17:57:47 +0000 |
commit | 2deedfb1e1288e79341bf05704f0662c251897e7 (patch) | |
tree | 3aed87b25c9fb42fe4f28cbab5b355e473ca60b1 /ui/qt/main_window.cpp | |
parent | d49404236ccd3eb0cbfc58503a562170611d25bf (diff) |
Add a setTitlebarForCaptureInProgress() method to MainWindow, and use it
to set the title when we have a capture in progress.
svn path=/trunk/; revision=48688
Diffstat (limited to 'ui/qt/main_window.cpp')
-rw-r--r-- | ui/qt/main_window.cpp | 14 |
1 files changed, 14 insertions, 0 deletions
diff --git a/ui/qt/main_window.cpp b/ui/qt/main_window.cpp index 24a1887fd5..96eb9ea01b 100644 --- a/ui/qt/main_window.cpp +++ b/ui/qt/main_window.cpp @@ -1132,6 +1132,20 @@ void MainWindow::setTitlebarForCaptureFile() } } +void MainWindow::setTitlebarForCaptureInProgress() +{ + gchar *window_name; + + if (cap_file_) { + window_name = g_strdup_printf("Capturing from %s ", cf_get_tempfile_source(cap_file_)); + setWindowTitle(window_name); + g_free(window_name); + } else { + /* We have no capture in progress. */ + setWindowTitle("The Wireshark Network Analyzer"); + } +} + // Menu state /* Enable or disable menu items based on whether you have a capture file |