diff --git a/src/widget/form/chatform.cpp b/src/widget/form/chatform.cpp index 919ba583e..d6744d92f 100644 --- a/src/widget/form/chatform.cpp +++ b/src/widget/form/chatform.cpp @@ -119,7 +119,7 @@ ChatForm::ChatForm(Friend* chatFriend) { if(!statusMessageLabel->text().isEmpty()) { - QWidget* sender = static_cast(QObject::sender()); + QWidget* sender = static_cast(this->sender()); statusMessageMenu.exec(sender->mapToGlobal(pos)); }