mirror of
https://github.com/overte-org/overte.git
synced 2025-04-22 03:44:26 +02:00
Fix toolbar button mouse click when they were added via the tablet scripting interface
This commit is contained in:
parent
8d5bdd2d84
commit
08784ff30c
1 changed files with 2 additions and 1 deletions
|
@ -623,7 +623,8 @@ TabletButtonProxy* TabletProxy::addButton(const QVariant& properties) {
|
|||
auto toolbarProxy = DependencyManager::get<TabletScriptingInterface>()->getSystemToolbarProxy();
|
||||
if (toolbarProxy) {
|
||||
// copy properties from tablet button proxy to toolbar button proxy.
|
||||
toolbarProxy->addButton(tabletButtonProxy->getProperties());
|
||||
auto toolbarButtonProxy = toolbarProxy->addButton(tabletButtonProxy->getProperties());
|
||||
tabletButtonProxy->setToolbarButtonProxy(toolbarButtonProxy);
|
||||
}
|
||||
}
|
||||
return tabletButtonProxy.data();
|
||||
|
|
Loading…
Reference in a new issue