diff options
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 |