Only calculate revision once.

git-svn-id: svn+ssh://svn.code.sf.net/p/wsjt/wsjt/branches/wsjtx@4024 ab8295b8-cf94-4d9e-aec4-7959e3be5d79
This commit is contained in:
Bill Somerville 2014-04-14 10:42:11 +00:00
parent 7f35cd847c
commit 5f95e16490
2 changed files with 4 additions and 2 deletions

View File

@ -71,6 +71,7 @@ private:
MainWindow::MainWindow(bool multiple, QSettings * settings, QSharedMemory *shdmem, QString const& thekey,
unsigned downSampleFactor, QWidget *parent) :
QMainWindow(parent),
m_revision {revision ("$Rev$")},
m_multiple {multiple},
m_settings (settings),
ui(new Ui::MainWindow),
@ -695,7 +696,7 @@ void MainWindow::monitor (bool state)
void MainWindow::on_actionAbout_triggered() //Display "About"
{
CAboutDlg {program_title (revision ("$Rev$")), this}.exec ();
CAboutDlg {program_title (m_revision), this}.exec ();
}
void MainWindow::on_autoButton_clicked (bool checked)
@ -2935,5 +2936,5 @@ void MainWindow::pskSetLocal ()
psk_Reporter->setLocalStation(
m_config.my_callsign ()
, m_config.my_grid ()
, antenna_description, "WSJT-X " + revision ("$Rev$"));
, antenna_description, "WSJT-X " + m_revision);
}

View File

@ -195,6 +195,7 @@ private:
Q_SIGNAL void outAttenuationChanged (qreal) const;
private:
QString m_revision;
bool m_multiple;
QSettings * m_settings;