1
0
mirror of https://bitbucket.org/librepilot/librepilot.git synced 2024-12-01 09:24:10 +01:00
Fixes problem with enums uploading and saving on the object browser
This commit is contained in:
PT_Dreamer 2012-11-14 17:40:55 +00:00 committed by Oleg Semyonov
parent 22173d96e5
commit 3bfbfdf7b3

View File

@ -132,6 +132,7 @@ void UAVObjectBrowserWidget::useScientificNotation(bool scientific)
void UAVObjectBrowserWidget::sendUpdate()
{
this->setFocus();
ObjectTreeItem *objItem = findCurrentObjectTreeItem();
Q_ASSERT(objItem);
objItem->apply();
@ -165,6 +166,7 @@ ObjectTreeItem *UAVObjectBrowserWidget::findCurrentObjectTreeItem()
void UAVObjectBrowserWidget::saveObject()
{
this->setFocus();
// Send update so that the latest value is saved
sendUpdate();
// Save object