diff options
author | Alexis La Goutte <alexis.lagoutte@gmail.com> | 2015-12-15 15:40:30 +0100 |
---|---|---|
committer | Alexis La Goutte <alexis.lagoutte@gmail.com> | 2015-12-29 18:01:27 +0000 |
commit | 936359053ab736360f12603b66e44500d70cc50c (patch) | |
tree | d80ed1358180196ed0467921c68582d9a9e542e8 /ui/qt | |
parent | 6c42a103e81feef35c9a35571c5866ae644279cc (diff) |
Qt: Add gui.prepend_window_title option
Bug: 11102
Change-Id: I659b6be4652a65542c217370e01340e4696c0e31
Reviewed-on: https://code.wireshark.org/review/12653
Petri-Dish: Alexis La Goutte <alexis.lagoutte@gmail.com>
Tested-by: Petri Dish Buildbot <buildbot-no-reply@wireshark.org>
Reviewed-by: Alexis La Goutte <alexis.lagoutte@gmail.com>
Diffstat (limited to 'ui/qt')
-rw-r--r-- | ui/qt/main_window.cpp | 4 |
1 files changed, 4 insertions, 0 deletions
diff --git a/ui/qt/main_window.cpp b/ui/qt/main_window.cpp index 1d6adec42a..775babf8be 100644 --- a/ui/qt/main_window.cpp +++ b/ui/qt/main_window.cpp @@ -1884,6 +1884,10 @@ void MainWindow::setWSWindowTitle(QString title) title = tr("The Wireshark Network Analyzer"); } + if((prefs.gui_prepend_window_title != NULL) && (*prefs.gui_prepend_window_title != '\0')) { + title.prepend(QString("[%1] ").arg(prefs.gui_prepend_window_title)); + } + if((prefs.gui_window_title != NULL) && (*prefs.gui_window_title != '\0')) { title.append(QString(" [%1]").arg(prefs.gui_window_title)); } |