mirror of
https://github.com/saitohirga/WSJT-X.git
synced 2024-11-19 10:32:02 -05:00
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:
parent
3ab2c43de1
commit
d2ad4a349f
@ -71,6 +71,7 @@ private:
|
|||||||
MainWindow::MainWindow(bool multiple, QSettings * settings, QSharedMemory *shdmem, QString const& thekey,
|
MainWindow::MainWindow(bool multiple, QSettings * settings, QSharedMemory *shdmem, QString const& thekey,
|
||||||
unsigned downSampleFactor, QWidget *parent) :
|
unsigned downSampleFactor, QWidget *parent) :
|
||||||
QMainWindow(parent),
|
QMainWindow(parent),
|
||||||
|
m_revision {revision ("$Rev$")},
|
||||||
m_multiple {multiple},
|
m_multiple {multiple},
|
||||||
m_settings (settings),
|
m_settings (settings),
|
||||||
ui(new Ui::MainWindow),
|
ui(new Ui::MainWindow),
|
||||||
@ -695,7 +696,7 @@ void MainWindow::monitor (bool state)
|
|||||||
|
|
||||||
void MainWindow::on_actionAbout_triggered() //Display "About"
|
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)
|
void MainWindow::on_autoButton_clicked (bool checked)
|
||||||
@ -2935,5 +2936,5 @@ void MainWindow::pskSetLocal ()
|
|||||||
psk_Reporter->setLocalStation(
|
psk_Reporter->setLocalStation(
|
||||||
m_config.my_callsign ()
|
m_config.my_callsign ()
|
||||||
, m_config.my_grid ()
|
, m_config.my_grid ()
|
||||||
, antenna_description, "WSJT-X " + revision ("$Rev$"));
|
, antenna_description, "WSJT-X " + m_revision);
|
||||||
}
|
}
|
||||||
|
@ -195,6 +195,7 @@ private:
|
|||||||
Q_SIGNAL void outAttenuationChanged (qreal) const;
|
Q_SIGNAL void outAttenuationChanged (qreal) const;
|
||||||
|
|
||||||
private:
|
private:
|
||||||
|
QString m_revision;
|
||||||
bool m_multiple;
|
bool m_multiple;
|
||||||
QSettings * m_settings;
|
QSettings * m_settings;
|
||||||
|
|
||||||
|
Loading…
Reference in New Issue
Block a user