mirror of
https://github.com/barry-ran/QtScrcpy.git
synced 2025-08-01 21:38:40 +00:00
fix: linux run crash
This commit is contained in:
parent
1d05dae486
commit
a756feed73
1 changed files with 4 additions and 2 deletions
|
@ -31,8 +31,10 @@ int main(int argc, char *argv[])
|
||||||
|
|
||||||
//update version
|
//update version
|
||||||
QStringList versionList = QCoreApplication::applicationVersion().split(".");
|
QStringList versionList = QCoreApplication::applicationVersion().split(".");
|
||||||
|
if (versionList.size() >= 3) {
|
||||||
QString version = versionList[0] + "." + versionList[1] + "." + versionList[2];
|
QString version = versionList[0] + "." + versionList[1] + "." + versionList[2];
|
||||||
a.setApplicationVersion(version);
|
a.setApplicationVersion(version);
|
||||||
|
}
|
||||||
|
|
||||||
installTranslator();
|
installTranslator();
|
||||||
#if defined(Q_OS_WIN32) || defined(Q_OS_OSX)
|
#if defined(Q_OS_WIN32) || defined(Q_OS_OSX)
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue