fix compilation on gcc
This commit is contained in:
@@ -66,10 +66,11 @@ private:
|
|||||||
// new
|
// new
|
||||||
if (other)
|
if (other)
|
||||||
{
|
{
|
||||||
this->conn_ = QObject::connect(
|
// the cast here should absolutely not be necessary, but gcc still requires it
|
||||||
other, &QObject::destroyed, qApp,
|
this->conn_ =
|
||||||
[this](QObject *) { this->set(nullptr); },
|
QObject::connect((QObject *)other, &QObject::destroyed, qApp,
|
||||||
Qt::DirectConnection);
|
[this](QObject *) { this->set(nullptr); },
|
||||||
|
Qt::DirectConnection);
|
||||||
}
|
}
|
||||||
|
|
||||||
this->t_ = other;
|
this->t_ = other;
|
||||||
|
|||||||
Reference in New Issue
Block a user