mirror of
https://github.com/amnezia-vpn/amnezia-client.git
synced 2026-06-21 02:01:03 +07:00
migrated the codebase to Qt6 and fixed some compatibility issues
* used a Qt6 ported version of SortFilterProxyModel * used an updated Qt6 compatible version of QXZing * added a flag to windows linker to avoid WinMain problem of MSVCRTD * renamed utils.cpp to utilities.cpp for avoiding confusion with the same file name in SortFilterProxyModel
This commit is contained in:
@@ -87,12 +87,12 @@ QStringList TapController::getTapList()
|
||||
return QStringList();
|
||||
}
|
||||
|
||||
QStringList l = output.split("\n", QString::SkipEmptyParts);
|
||||
QStringList l = output.split("\n", Qt::SkipEmptyParts);
|
||||
if (l.size() > 0) l.removeLast();
|
||||
|
||||
QStringList tapList;
|
||||
for (QString s : l) {
|
||||
if (s.contains(" ")) tapList.append(s.split(" ", QString::SkipEmptyParts).first());
|
||||
if (s.contains(" ")) tapList.append(s.split(" ", Qt::SkipEmptyParts).first());
|
||||
else tapList.append(s);
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user