mirror of
git://projects.qi-hardware.com/gmenu2x.git
synced 2024-11-26 12:15:21 +02:00
Don't overwrite link action provided to constructor.
Fixes bug introduced in 57ad81e3df
.
This bug would prevent applications from launching, so it's pretty serious.
I did test before committing, but apparently I didn't test the right binary.
This commit is contained in:
parent
92d221a1bd
commit
ed8b0c38ba
@ -29,14 +29,12 @@
|
||||
#include <sstream>
|
||||
|
||||
using namespace std;
|
||||
using namespace fastdelegate;
|
||||
|
||||
Link::Link(GMenu2X *gmenu2x_, Touchscreen &ts, LinkRunAction action_)
|
||||
: Button(ts, true)
|
||||
, action(action_)
|
||||
, gmenu2x(gmenu2x_)
|
||||
{
|
||||
action = MakeDelegate(this, &Link::run);
|
||||
edited = false;
|
||||
iconPath = gmenu2x->sc.getSkinFilePath("icons/generic.png");
|
||||
iconX = 0;
|
||||
|
Loading…
Reference in New Issue
Block a user