Skip to content
Snippets Groups Projects
Commit c36468c2 authored by Jan Möbius's avatar Jan Möbius
Browse files

Really do update when calling objectUpdated in core

git-svn-id: http://www.openflipper.org/svnrepo/OpenFlipper/branches/Free@4189 383ad7c9-94d9-4d36-a494-682f7c89f535
parent 05917af5
Branches
Tags
No related merge requests found
......@@ -73,16 +73,18 @@ void Core::slotObjectUpdated(int _identifier) {
// If we are called for a special object, we update it ourself so the Plugins dont need to do that.
if ( _identifier != -1 ) {
BaseObject* object = 0;
PluginFunctions::get_object(_identifier,object);
if ( !object ) {
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);
updateView();
}
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment