Commit d017c8ae authored by Andreas Traczyk's avatar Andreas Traczyk Committed by Ming Rui Zhang

contactpicker: fix toggle button

Change-Id: Ida5bb5bed0b3a1de68253a49176f3acd383f8919
parent 95263431
......@@ -204,11 +204,12 @@ VideoOverlay::on_transferButton_toggled(bool checked)
// receive the signal that ensure the button checked status is correct and contactpicker
// is properly hidden
Utils::oneShotConnect(contactPicker_, &ContactPicker::willClose, [this](QMouseEvent *event) {
Utils::oneShotConnect(contactPicker_, &ContactPicker::willClose,
[this](QMouseEvent *event) {
// check if current mouse position is on button
auto relativeCursorPos = ui->transferCallButton->mapFromGlobal(event->pos());
if (!ui->transferCallButton->rect().contains(relativeCursorPos)) {
auto relativeClickPos = ui->transferCallButton->mapFromGlobal(event->globalPos());
if (!ui->transferCallButton->rect().contains(relativeClickPos)) {
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment