Replace some uses of static_cast with qobject_cast

This commit is contained in:
Jonas Kvinge
2020-07-17 01:32:07 +02:00
parent 9e32f0d778
commit 71a1ea481b
12 changed files with 21 additions and 21 deletions

View File

@@ -105,7 +105,7 @@ void FilesystemDevice::Close() {
void FilesystemDevice::ExitFinished() {
QObject *obj = static_cast<QObject*>(sender());
QObject *obj = qobject_cast<QObject*>(sender());
if (!obj) return;
disconnect(obj, nullptr, this, nullptr);
qLog(Debug) << obj << "successfully exited.";