Skip to content

Commit eff05f0

Browse files
committed
Fix inconsistent version numbers.
1 parent 07c6d66 commit eff05f0

File tree

3 files changed

+3
-10
lines changed

3 files changed

+3
-10
lines changed

source/app/appinfo.cpp

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -27,7 +27,7 @@ namespace AppInfo
2727
const char *TRANSLATIONS_URL =
2828
"https://hosted.weblate.org/engage/powertabeditor";
2929
const char *APPLICATION_NAME = "Power Tab Editor";
30-
const char *APPLICATION_VERSION = "2.0";
30+
const char *APPLICATION_VERSION = "2.0.20";
3131

3232
#if defined(Q_OS_WIN)
3333
const char *ORGANIZATION_NAME = "Power Tab";
@@ -43,7 +43,6 @@ namespace AppInfo
4343

4444
ss << APPLICATION_NAME << " "
4545
<< APPLICATION_VERSION << " "
46-
<< "Beta "
4746
<< Version::get();
4847

4948
return ss.str();

source/app/powertabeditor.cpp

Lines changed: 1 addition & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -2189,13 +2189,7 @@ void PowerTabEditor::dropEvent(QDropEvent *event)
21892189

21902190
QString PowerTabEditor::getApplicationName() const
21912191
{
2192-
QString name = QString("%1 %2 Beta").arg(
2193-
AppInfo::APPLICATION_NAME,
2194-
AppInfo::APPLICATION_VERSION);
2195-
2196-
name += QString::fromStdString(Version::get());
2197-
2198-
return name;
2192+
return QString::fromStdString(AppInfo::makeApplicationName());
21992193
}
22002194

22012195
void PowerTabEditor::updateWindowTitle()

source/util/version.cpp

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -24,7 +24,7 @@ namespace Version {
2424
std::string get() {
2525
std::string ret;
2626
#ifdef PTE_VERSION
27-
ret = " (v" + std::string(BOOST_PP_STRINGIZE(PTE_VERSION)) + ")";
27+
ret = "(v" + std::string(BOOST_PP_STRINGIZE(PTE_VERSION)) + ")";
2828
#else
2929
#error A PTE_VERSION must be set. Make sure nothing has broken in the build process.
3030
#endif

0 commit comments

Comments
 (0)