Commit aff9c803 authored by Jan Möbius's avatar Jan Möbius
Browse files

Lock redraw while updating objects slots are processed

git-svn-id: http://www.openflipper.org/svnrepo/OpenFlipper/branches/Free@4203 383ad7c9-94d9-4d36-a494-682f7c89f535
parent 29dae2f3
......@@ -70,21 +70,28 @@ void Core::slotObjectUpdated(int _identifier) {
}
}
// Disable redraws as everything here has to update the object only once
OpenFlipper::Options::redrawDisabled(true);
// If we are called for a special object, we update it ourself so the Plugins dont need to do that.
BaseObject* object = 0;
if ( _identifier != -1 ) {
BaseObject* object = 0;
if ( !PluginFunctions::get_object(_identifier,object) ) {
emit log(LOGERR,"updated_objects called for non existing object with id : " + QString::number(_identifier) );
return;
}
object->update();
}
// just inform the plugins as we dont do anything else
emit signalObjectUpdated(_identifier);
object->update();
// Reenable redraws
OpenFlipper::Options::redrawDisabled(false);
updateView();
}
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment