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