Replace some uses of static_cast with qobject_cast
This commit is contained in:
@@ -224,7 +224,7 @@ void TidalService::Exit() {
|
||||
|
||||
void TidalService::ExitReceived() {
|
||||
|
||||
QObject *obj = static_cast<QObject*>(sender());
|
||||
QObject *obj = qobject_cast<QObject*>(sender());
|
||||
disconnect(obj, nullptr, this, nullptr);
|
||||
qLog(Debug) << obj << "successfully exited.";
|
||||
wait_for_exit_.removeAll(obj);
|
||||
|
||||
Reference in New Issue
Block a user