mirror of
https://github.com/qTox/qTox.git
synced 2024-03-22 14:00:36 +08:00
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.
This commit is contained in:
parent
ae24311237
commit
63af0d7500
|
@ -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…
Reference in New Issue
Block a user