mirror of
https://github.com/Chatterino/chatterino2.git
synced 2024-11-13 19:49:51 +01:00
fix compilation on gcc
This commit is contained in:
parent
2ad4236f10
commit
4d4056ad51
|
@ -66,10 +66,11 @@ private:
|
|||
// new
|
||||
if (other)
|
||||
{
|
||||
this->conn_ = QObject::connect(
|
||||
other, &QObject::destroyed, qApp,
|
||||
[this](QObject *) { this->set(nullptr); },
|
||||
Qt::DirectConnection);
|
||||
// the cast here should absolutely not be necessary, but gcc still requires it
|
||||
this->conn_ =
|
||||
QObject::connect((QObject *)other, &QObject::destroyed, qApp,
|
||||
[this](QObject *) { this->set(nullptr); },
|
||||
Qt::DirectConnection);
|
||||
}
|
||||
|
||||
this->t_ = other;
|
||||
|
|
Loading…
Reference in a new issue