This commit is contained in:
parent
acd0ed6710
commit
2cccbaae9f
|
@ -3116,7 +3116,7 @@ static int getDays(int year, int month)
|
||||||
return 31;
|
return 31;
|
||||||
}
|
}
|
||||||
|
|
||||||
static int getPathVersion()
|
static int getPatchVersion()
|
||||||
{
|
{
|
||||||
QDate date = QLocale(QLocale::English).toDate(__DATE__, "MMM dd yyyy");
|
QDate date = QLocale(QLocale::English).toDate(__DATE__, "MMM dd yyyy");
|
||||||
int year = date.year();
|
int year = date.year();
|
||||||
|
@ -3198,7 +3198,7 @@ void MainWindow::on_act_about_triggered()
|
||||||
}
|
}
|
||||||
#endif
|
#endif
|
||||||
|
|
||||||
patchVersion = getPathVersion();
|
patchVersion = getPatchVersion();
|
||||||
|
|
||||||
HGChar version[32] = { 0 };
|
HGChar version[32] = { 0 };
|
||||||
sprintf(version, "%d.%d.%d.%d", mainVersion, subVersion, buildVersion, patchVersion);
|
sprintf(version, "%d.%d.%d.%d", mainVersion, subVersion, buildVersion, patchVersion);
|
||||||
|
|
Loading…
Reference in New Issue