mirror of
https://github.com/lubosz/overte.git
synced 2025-04-19 08:58:02 +02:00
Merge pull request #10815 from jherico/fix_toolbar_buttons
Fix toolbar button mouse click when they were added via the tablet scripting interface
This commit is contained in:
commit
a09986a865
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