diff options
author | Peter Wu <peter@lekensteyn.nl> | 2016-02-19 18:27:44 +0100 |
---|---|---|
committer | Peter Wu <peter@lekensteyn.nl> | 2016-02-24 10:04:58 +0000 |
commit | 08c3bbbbb6547f5c838c600dd942ecd5fbca1fd4 (patch) | |
tree | d231c2f54f795233db51b5d29f16de9f601997eb /ui | |
parent | c2f85b6925365365926d3654e01dc53a95c80d37 (diff) | |
download | wireshark-08c3bbbbb6547f5c838c600dd942ecd5fbca1fd4.tar.gz |
qt: show marker when capture file comment has changed
Fixes a missing "*" marker in the title and this warning when the
capture file comment is modified:
QWidget::setWindowModified: The window title does not contain a '[*]' placeholder
Change-Id: Iea0a63cf8c8f9abd577397c8881f0399d2e798ba
Reviewed-on: https://code.wireshark.org/review/14010
Petri-Dish: Peter Wu <peter@lekensteyn.nl>
Reviewed-by: Stig Bjørlykke <stig@bjorlykke.org>
Tested-by: Petri Dish Buildbot <buildbot-no-reply@wireshark.org>
Reviewed-by: Peter Wu <peter@lekensteyn.nl>
Diffstat (limited to 'ui')
-rw-r--r-- | ui/qt/main_window.cpp | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/ui/qt/main_window.cpp b/ui/qt/main_window.cpp index a8991e5f3b..25f501363a 100644 --- a/ui/qt/main_window.cpp +++ b/ui/qt/main_window.cpp @@ -1902,7 +1902,7 @@ void MainWindow::setTitlebarForCaptureFile() NULL); if (utf8_filename) { QFileInfo fi(utf8_filename); - setWSWindowTitle(fi.fileName()); + setWSWindowTitle(QString("[*]%1").arg(fi.fileName())); setWindowFilePath(utf8_filename); g_free(utf8_filename); } else { |