Actions
Bug #2599
closedWPushButton icon disappears if button becomes disabled
Start date:
01/23/2014
Due date:
% Done:
0%
Estimated time:
Description
This bug can be reproduced when an application is being deployed as a built-in server with the --deploy-path
param set to some value. If --deploy-path
is not set, everything works fine.
Here's an example code:
Wt::WApplication* createApplication(const Wt::WEnvironment& env)
{
Wt::WApplication *app = new Wt::WApplication(env);
Wt::WPushButton *b = new Wt::WPushButton;
b->resize(200, 200);
b->setIcon("button.jpg");
b->clicked().connect(boost::bind(&Wt::WPushButton::setDisabled, b, true));
app->root()->addWidget(b);
return app;
}
When I start this application I can see a button with an icon. But when I click the button (the button becomes disabled) the icon dissapers and browser shows an image placeholder as if my icon can't be loaded.
I use Wt 3.3.1
Files
Updated by Alan Finley almost 11 years ago
- File button_icon.patch button_icon.patch added
This patch fixes the icon problem for me.
Please, consider applying it.
Updated by Koen Deforche almost 11 years ago
- Status changed from New to InProgress
- Assignee set to Koen Deforche
- Target version set to 3.3.2
Updated by Koen Deforche almost 11 years ago
- Status changed from InProgress to Resolved
Hey,
Thanks for this, this was indeed an oversight.
Regards,
koen
Updated by Koen Deforche almost 11 years ago
- Status changed from Resolved to Closed
Actions