# HG changeset patch # User Olaf Wintermann # Date 1745085369 -7200 # Node ID dd38b170f9a85ffdddfa474ae8ad67d48f9b9839 # Parent 50da9696a8655de29e24df5ebecf0eadcdd8530d fix toolbar item signal diff -r 50da9696a865 -r dd38b170f9a8 ui/qt/toolbar.cpp --- a/ui/qt/toolbar.cpp Fri Apr 18 17:22:28 2025 +0200 +++ b/ui/qt/toolbar.cpp Sat Apr 19 19:56:09 2025 +0200 @@ -95,7 +95,7 @@ toolbar->addAction(action); UiEventWrapper *event = new UiEventWrapper(obj, item->args.onclick, item->args.onclickdata); - action->connect(action, SIGNAL(clicked()), event, SLOT(slot())); + action->connect(action, SIGNAL(triggered()), event, SLOT(slot())); action->connect(action, SIGNAL(destroyed()), event, SLOT(destroy())); } @@ -123,7 +123,7 @@ event->var = var; event->customdata1 = action; event->prepare_event = toolbar_togglebutton_event; - action->connect(action, SIGNAL(clicked()), event, SLOT(slot())); + action->connect(action, SIGNAL(triggered()), event, SLOT(slot())); action->connect(action, SIGNAL(destroyed()), event, SLOT(destroy())); }