summary refs log tree commit diff
path: root/src/TextInputWidget.cpp
diff options
context:
space:
mode:
authorNicolas Werner <nicolas.werner@hotmail.de>2020-10-30 03:22:48 +0100
committerNicolas Werner <nicolas.werner@hotmail.de>2020-10-30 03:22:48 +0100
commit888d0047648c008e884a017a3ef8be5fdf72ced4 (patch)
tree97fd4a64f69de4c318ba6d728658e2a44750ed09 /src/TextInputWidget.cpp
parentMerge pull request #311 from trilene/webrtc-video (diff)
downloadnheko-888d0047648c008e884a017a3ef8be5fdf72ced4.tar.xz
Supress unused var warning for STUN_SERVER (used only if gstreamer supported)
Diffstat (limited to 'src/TextInputWidget.cpp')
-rw-r--r--src/TextInputWidget.cpp4
1 files changed, 2 insertions, 2 deletions
diff --git a/src/TextInputWidget.cpp b/src/TextInputWidget.cpp

index c75c6c89..81c1bce9 100644 --- a/src/TextInputWidget.cpp +++ b/src/TextInputWidget.cpp
@@ -453,8 +453,8 @@ FilteredTextEdit::completerRect() auto item_height = completer_->popup()->sizeHintForRow(0); auto max_height = item_height * completer_->maxVisibleItems(); auto height = (completer_->completionCount() > completer_->maxVisibleItems()) - ? max_height - : completer_->completionCount() * item_height; + ? max_height + : completer_->completionCount() * item_height; rect.setWidth(completer_->popup()->sizeHintForColumn(0)); rect.moveBottom(-height); return rect;