From cd7f6d3afc4e2ef981e185999a7e4c42c156a58e Mon Sep 17 00:00:00 2001 From: Bill Somerville Date: Tue, 6 Mar 2018 21:45:35 +0000 Subject: [PATCH] Application modal message boxes do not need full title This is mainly to help JTAlert that uses window titles to find WSJT-X main windows. git-svn-id: svn+ssh://svn.code.sf.net/p/wsjt/wsjt/branches/wsjtx@8543 ab8295b8-cf94-4d9e-aec4-7959e3be5d79 --- MessageBox.cpp | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/MessageBox.cpp b/MessageBox.cpp index 0f8b3972c..7c6f05132 100644 --- a/MessageBox.cpp +++ b/MessageBox.cpp @@ -2,6 +2,7 @@ #include #include +#include #include "revision_utils.hpp" @@ -13,7 +14,7 @@ MessageBox::MessageBox (QWidget * parent) MessageBox::MessageBox (Icon icon, QString const& text, StandardButtons buttons , QWidget * parent, Qt::WindowFlags flags) - : QMessageBox {icon, program_title (), text, buttons, parent, flags} + : QMessageBox {icon, QCoreApplication::applicationName (), text, buttons, parent, flags} { }