From 91e43303949491d8865bac6fd0464102f176fc52 Mon Sep 17 00:00:00 2001 From: Gerald Combs Date: Wed, 31 Dec 2014 14:21:50 -0800 Subject: Qt: Convert more dialog titles. Change-Id: I9c3e3471a92b7af9347a541bece3d9405d37dce0 Reviewed-on: https://code.wireshark.org/review/6193 Reviewed-by: Gerald Combs --- ui/qt/module_preferences_scroll_area.cpp | 7 +++---- 1 file changed, 3 insertions(+), 4 deletions(-) (limited to 'ui/qt/module_preferences_scroll_area.cpp') diff --git a/ui/qt/module_preferences_scroll_area.cpp b/ui/qt/module_preferences_scroll_area.cpp index cf46347b99..f1290e2fe9 100644 --- a/ui/qt/module_preferences_scroll_area.cpp +++ b/ui/qt/module_preferences_scroll_area.cpp @@ -24,6 +24,7 @@ #include "syntax_line_edit.h" #include "qt_ui_utils.h" #include "uat_dialog.h" +#include "wireshark_application.h" #include @@ -474,8 +475,7 @@ void ModulePreferencesScrollArea::filenamePushButtonPressed() pref_t *pref = filename_pb->property(pref_prop_).value(); if (!pref) return; - QString filename = QFileDialog::getSaveFileName(this, - QString(tr("Wireshark: ")) + pref->description, + QString filename = QFileDialog::getSaveFileName(this, wsApp->windowTitleString(pref->title), pref->stashed_val.string); if (!filename.isEmpty()) { @@ -493,8 +493,7 @@ void ModulePreferencesScrollArea::dirnamePushButtonPressed() pref_t *pref = dirname_pb->property(pref_prop_).value(); if (!pref) return; - QString dirname = QFileDialog::getExistingDirectory(this, - QString(tr("Wireshark: ")) + pref->description, + QString dirname = QFileDialog::getExistingDirectory(this, wsApp->windowTitleString(pref->title), pref->stashed_val.string); if (!dirname.isEmpty()) { -- cgit v1.2.1