Skip to content

Commit

Permalink
Fix build for Linux
Browse files Browse the repository at this point in the history
  • Loading branch information
EricKotato committed Oct 2, 2019
1 parent 6d2fe62 commit 90e3c2c
Showing 1 changed file with 7 additions and 7 deletions.
14 changes: 7 additions & 7 deletions Telegram/SourceFiles/platform/linux/launcher_linux.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -76,19 +76,19 @@ bool Launcher::launchUpdater(UpdaterLaunch action) {
}
#endif // !TDESKTOP_DISABLE_AUTOUPDATE
if (!cMainFont().isEmpty()) {
argumentsList.push(qsl("-mainfont"));
pushArgument(QFile::encodeName(cMainFont()));
argumentsList.push("-mainfont");
argumentsList.push(QFile::encodeName(cMainFont()));
}
if (!cSemiboldFont().isEmpty()) {
argumentsList.push(qsl("-semiboldfont"));
pushArgument(QFile::encodeName(cSemiboldFont()));
argumentsList.push("-semiboldfont");
argumentsList.push(QFile::encodeName(cSemiboldFont()));
}
if (cSemiboldFontIsBold()) {
argumentsList.push(qsl("-semiboldisbold"));
argumentsList.push("-semiboldisbold");
}
if (!cMonospaceFont().isEmpty()) {
argumentsList.push(qsl("-monospacefont"));
pushArgument(QFile::encodeName(cMonospaceFont()));
argumentsList.push("-monospacefont");
argumentsList.push(QFile::encodeName(cMonospaceFont()));
}
if (cDataFile() != qsl("data")) {
argumentsList.push("-key");
Expand Down

0 comments on commit 90e3c2c

Please sign in to comment.