Fix for
QWidget::setWindowModified: The window title does not contain a '[*]' placeholder a) Add [*] to the window title. b) Also set the window title before calling setWindowModified Not really understanding what I'm doing here, just following the hints given in http://qt-project.org/forums/viewthread/2108 Original logmessages when closing Wireshark while running a capture. 17:23:39.652 Capture Msg Capture stopped! 17:23:39.653 Main Dbg Callback: capture update finished QWidget::setWindowModified: The window title does not contain a '[*]' placeholder FIX: packet list heading menu sensitivity 17:23:39.653 Dbg FIX: capture_info_ui_destroy 17:23:39.653 Main Dbg Callback: Closing FIX: packet list heading menu sensitivity 17:23:39.655 Main Dbg Callback: Closed svn path=/trunk/; revision=51722
This commit is contained in:
parent
ee8719e2e1
commit
7cd3ff3a8e
|
@ -1164,7 +1164,6 @@ void MainWindow::captureStop() {
|
|||
void MainWindow::setTitlebarForCaptureFile()
|
||||
{
|
||||
if (cap_file_ && cap_file_->filename) {
|
||||
setWindowModified(cf_has_unsaved_data(cap_file_));
|
||||
//
|
||||
// Qt *REALLY* doesn't like windows that sometimes have a
|
||||
// title set with setWindowTitle() and other times have a
|
||||
|
@ -1197,7 +1196,7 @@ void MainWindow::setTitlebarForCaptureFile()
|
|||
//
|
||||
gchar *window_name;
|
||||
setWindowFilePath(NULL);
|
||||
window_name = g_strdup_printf("Capturing from %s", cf_get_tempfile_source(cap_file_)); //TODO : Fix Translate
|
||||
window_name = g_strdup_printf("Capturing from %s[*]", cf_get_tempfile_source(cap_file_)); //TODO : Fix Translate
|
||||
setWindowTitle(window_name);
|
||||
g_free(window_name);
|
||||
} else {
|
||||
|
@ -1226,6 +1225,7 @@ void MainWindow::setTitlebarForCaptureFile()
|
|||
g_free(utf8_filename);
|
||||
}
|
||||
}
|
||||
setWindowModified(cf_has_unsaved_data(cap_file_));
|
||||
} else {
|
||||
/* We have no capture file. */
|
||||
setWindowFilePath(NULL);
|
||||
|
|
Loading…
Reference in New Issue