D14895: Plasmashell freezes when trying to get free space info from mounted remote filesystem after losing connection to it
Anthony Fieroni
noreply at phabricator.kde.org
Fri Aug 17 09:37:16 BST 2018
anthonyfieroni added inline comments.
INLINE COMMENTS
> soliddeviceengine.cpp:67
> + KDiskFreeSpaceInfo info = KDiskFreeSpaceInfo::freeSpaceInfo(m_path);
> + emit infoObtained(m_path, m_udi, info.isValid(), info.available(), info.size());
> +}
Don't you forget to emit finished?
> soliddeviceengine.cpp:591-600
> + connect(thread, SIGNAL(started()), worker, SLOT(getFreeSpaceInfo()));
> + connect(worker, SIGNAL(finished()), thread, SLOT(quit()));
> +
> + // delete later thread and worker
> + connect(worker, SIGNAL(finished()), worker, SLOT(deleteLater()));
> + connect(thread, SIGNAL(finished()), thread, SLOT(deleteLater()));
> +
Use new connect syntax .
> soliddeviceengine.cpp:622
> +
> + m_timers[path]->deleteLater();
> + m_timers.remove(path);
It does not need, you connect finished to deleteLater.
REPOSITORY
R120 Plasma Workspace
REVISION DETAIL
https://phabricator.kde.org/D14895
To: McPain, broulik, ngraham
Cc: anthonyfieroni, davidedmundson, plasma-devel, ragreen, Pitel, ZrenBot, lesliezhai, ali-mohamed, jensreuterberg, abetts, sebas, apol, mart
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://mail.kde.org/pipermail/plasma-devel/attachments/20180817/83ea2b78/attachment-0001.html>
More information about the Plasma-devel
mailing list