kscreen daemon race

Sebastian Kügler sebas at kde.org
Wed Jun 1 00:08:21 UTC 2016


On Wednesday 01 June 2016 00:05:10 Mark Gaiser wrote:
> Perhaps blockSignals can help you out [1]?
> 
> object->blockSignals(true);
> // ...
> Write your changes
> // ...
> object->blockSignals(false);
> 
> Object should be the object that currently receives the notification that
> the config file has been changed i think.
> 
> [1] http://doc.qt.io/qt-5/qobject.html#blockSignals 

That is essentially already what's happening, the problem is that signals come 
in after unblocking them.
-- 
sebas

Sebastian Kügler    •    http://vizZzion.orghttp://www.kde.org


More information about the Plasma-devel mailing list