mirror of
https://github.com/overte-org/overte.git
synced 2025-08-06 18:50:00 +02:00
Fix toolbar button mouse click when they were added via the tablet scripting interface
This commit is contained in:
parent
5da43257f7
commit
b1b26bc8a5
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();
|
auto toolbarProxy = DependencyManager::get<TabletScriptingInterface>()->getSystemToolbarProxy();
|
||||||
if (toolbarProxy) {
|
if (toolbarProxy) {
|
||||||
// copy properties from tablet button proxy to toolbar button proxy.
|
// 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();
|
return tabletButtonProxy.data();
|
||||||
|
|
Loading…
Reference in a new issue