summary refs log tree commit diff
path: root/src/voip/CallManager.cpp
diff options
context:
space:
mode:
authorNicolas Werner <nicolas.werner@hotmail.de>2023-10-10 00:33:39 +0200
committerNicolas Werner <nicolas.werner@hotmail.de>2023-10-10 00:33:39 +0200
commit3a0d5788e1fc49816742ddd4799ad0d658925ba2 (patch)
tree55686a2e0bd354260ebd8c17fedb755b5d0d131c /src/voip/CallManager.cpp
parentTranslated using Weblate (French) (diff)
parentRestore reply context menu (diff)
downloadnheko-3a0d5788e1fc49816742ddd4799ad0d658925ba2.tar.xz
Merge branch 'delegate-rework'
Diffstat (limited to 'src/voip/CallManager.cpp')
-rw-r--r--src/voip/CallManager.cpp3
1 files changed, 2 insertions, 1 deletions
diff --git a/src/voip/CallManager.cpp b/src/voip/CallManager.cpp

index 5479ba31..46679e71 100644 --- a/src/voip/CallManager.cpp +++ b/src/voip/CallManager.cpp
@@ -92,7 +92,8 @@ CallManager::CallManager(QObject *parent) if (QGuiApplication::platformName() != QStringLiteral("wayland")) { // Selected by default screenShareType_ = ScreenShareType::X11; - std::swap(screenShareTypes_[0], screenShareTypes_[1]); + if (screenShareTypes_.size() >= 2) + std::swap(screenShareTypes_[0], screenShareTypes_[1]); } } #endif