summary refs log tree commit diff
path: root/src/dialogs/CreateRoom.cpp
diff options
context:
space:
mode:
authorDeepBlueV7.X <nicolas.werner@hotmail.de>2020-11-26 23:05:31 +0100
committerGitHub <noreply@github.com>2020-11-26 23:05:31 +0100
commit4d2911692271abf1947546b01836fc0ffa47c063 (patch)
treecef95a50661aacdbad838aa1b1cfddb7fe1492d6 /src/dialogs/CreateRoom.cpp
parentMerge pull request #343 from Kirillpt/fix/textFieldvalidation (diff)
parentfix encryption toggles (diff)
downloadnheko-4d2911692271abf1947546b01836fc0ffa47c063.tar.xz
Merge pull request #344 from Kirillpt/fix/togglebutton_using
Fix toggles in the remaining dialogues
Diffstat (limited to 'src/dialogs/CreateRoom.cpp')
-rw-r--r--src/dialogs/CreateRoom.cpp6
1 files changed, 3 insertions, 3 deletions
diff --git a/src/dialogs/CreateRoom.cpp b/src/dialogs/CreateRoom.cpp

index be5b4638..459405ce 100644 --- a/src/dialogs/CreateRoom.cpp +++ b/src/dialogs/CreateRoom.cpp
@@ -80,7 +80,7 @@ CreateRoom::CreateRoom(QWidget *parent) directToggle_ = new Toggle(this); directToggle_->setActiveColor(QColor("#38A3D8")); directToggle_->setInactiveColor(QColor("gray")); - directToggle_->setState(true); + directToggle_->setState(false); auto directLayout = new QHBoxLayout; directLayout->setContentsMargins(0, 10, 0, 10); @@ -133,8 +133,8 @@ CreateRoom::CreateRoom(QWidget *parent) } }); - connect(directToggle_, &Toggle::toggled, this, [this](bool isDisabled) { - request_.is_direct = !isDisabled; + connect(directToggle_, &Toggle::toggled, this, [this](bool isEnabled) { + request_.is_direct = isEnabled; }); }