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
This commit is contained in:
Bill Somerville 2018-03-06 21:45:35 +00:00
parent fcb9e39639
commit cd7f6d3afc
1 changed files with 2 additions and 1 deletions

View File

@ -2,6 +2,7 @@
#include <QDialogButtonBox>
#include <QPushButton>
#include <QCoreApplication>
#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}
{
}