fix compilation on gcc

This commit is contained in:
fourtf
2020-08-15 19:46:18 +02:00
parent 2ad4236f10
commit 4d4056ad51
+3 -2
View File
@@ -66,8 +66,9 @@ 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_ =
QObject::connect((QObject *)other, &QObject::destroyed, qApp,
[this](QObject *) { this->set(nullptr); }, [this](QObject *) { this->set(nullptr); },
Qt::DirectConnection); Qt::DirectConnection);
} }