1
0
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:
initramfs 2016-04-26 09:59:21 +08:00
parent ae24311237
commit 63af0d7500
No known key found for this signature in database
GPG Key ID: 78B8BDF87E9EF0AF

View File

@ -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));
}