Browse Source

fix(status): explictly refer to this within lambda

Workaround for a potential gcc bug in which lambda expressions are not
being executed in the correct context.
pull/3186/head
initramfs 9 years ago
parent
commit
63af0d7500
No known key found for this signature in database
GPG Key ID: 78B8BDF87E9EF0AF
  1. 2
      src/widget/form/chatform.cpp

2
src/widget/form/chatform.cpp

@ -119,7 +119,7 @@ ChatForm::ChatForm(Friend* chatFriend) @@ -119,7 +119,7 @@ ChatForm::ChatForm(Friend* chatFriend)
{
if(!statusMessageLabel->text().isEmpty())
{
QWidget* sender = static_cast<QWidget*>(QObject::sender());
QWidget* sender = static_cast<QWidget*>(this->sender());
statusMessageMenu.exec(sender->mapToGlobal(pos));
}

Loading…
Cancel
Save