From 56bffba031dfd22aced907bcd44ec7c981a820f9 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Stig=20Bj=C3=B8rlykke?= Date: Tue, 19 Jan 2016 18:03:51 +0100 Subject: Qt: Update window title when preferences changed. MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit When switching profile the prefs.gui_window_title may have changed so ensure we update the main window title. Change-Id: Ic1f9c7ac075d77c60cfbebb20624e597f7eb8449 Reviewed-on: https://code.wireshark.org/review/13418 Petri-Dish: Stig Bjørlykke Tested-by: Petri Dish Buildbot Reviewed-by: Alexis La Goutte --- ui/qt/main_window.cpp | 1 + ui/qt/main_window.h | 2 +- 2 files changed, 2 insertions(+), 1 deletion(-) (limited to 'ui') diff --git a/ui/qt/main_window.cpp b/ui/qt/main_window.cpp index 8bfda67c0c..134c0af677 100644 --- a/ui/qt/main_window.cpp +++ b/ui/qt/main_window.cpp @@ -328,6 +328,7 @@ MainWindow::MainWindow(QWidget *parent) : connect(wsApp, SIGNAL(preferencesChanged()), this, SLOT(layoutToolbars())); connect(wsApp, SIGNAL(preferencesChanged()), this, SLOT(updatePreferenceActions())); connect(wsApp, SIGNAL(preferencesChanged()), this, SLOT(zoomText())); + connect(wsApp, SIGNAL(preferencesChanged()), this, SLOT(setTitlebarForCaptureFile())); connect(wsApp, SIGNAL(updateRecentItemStatus(const QString &, qint64, bool)), this, SLOT(updateRecentFiles())); updateRecentFiles(); diff --git a/ui/qt/main_window.h b/ui/qt/main_window.h index ad483b408c..ce2c2df928 100644 --- a/ui/qt/main_window.h +++ b/ui/qt/main_window.h @@ -195,7 +195,6 @@ private: void initTimePrecisionFormatMenu(); void initFreezeActions(); - void setTitlebarForCaptureFile(); void setTitlebarForCaptureInProgress(); void setMenusForCaptureFile(bool force_disable = false); void setMenusForCaptureInProgress(bool capture_in_progress = false); @@ -244,6 +243,7 @@ public slots: void updatePreferenceActions(); void updateRecentActions(); + void setTitlebarForCaptureFile(); void setWSWindowTitle(QString title = QString()); void captureCapturePrepared(capture_session *); -- cgit v1.2.3