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>
This commit is contained in:
parent
c2f85b6925
commit
08c3bbbbb6
|
@ -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 {
|
||||
|
|
Loading…
Reference in New Issue