aboutsummaryrefslogtreecommitdiffstats
path: root/ui
diff options
context:
space:
mode:
authorStig Bjørlykke <stig@bjorlykke.org>2016-01-19 18:03:51 +0100
committerAlexis La Goutte <alexis.lagoutte@gmail.com>2016-01-19 18:13:02 +0000
commit56bffba031dfd22aced907bcd44ec7c981a820f9 (patch)
tree63b847eed102e3d9da81a4aab72d634b1d55c9df /ui
parent630c8140c93c5318854def7b10260dffd3cf6f35 (diff)
Qt: Update window title when preferences changed.
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 <stig@bjorlykke.org> Tested-by: Petri Dish Buildbot <buildbot-no-reply@wireshark.org> Reviewed-by: Alexis La Goutte <alexis.lagoutte@gmail.com>
Diffstat (limited to 'ui')
-rw-r--r--ui/qt/main_window.cpp1
-rw-r--r--ui/qt/main_window.h2
2 files changed, 2 insertions, 1 deletions
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 *);