Project

General

Profile

Actions

Bug #2599

closed

WPushButton icon disappears if button becomes disabled

Added by Alan Finley over 10 years ago. Updated about 10 years ago.

Status:
Closed
Priority:
Normal
Assignee:
Target version:
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

button_icon.patch (396 Bytes) button_icon.patch WPushButton icon patch Alan Finley, 01/30/2014 12:38 PM
Actions #1

Updated by Alan Finley about 10 years ago

This patch fixes the icon problem for me.

Please, consider applying it.

Actions #2

Updated by Koen Deforche about 10 years ago

  • Status changed from New to InProgress
  • Assignee set to Koen Deforche
  • Target version set to 3.3.2
Actions #3

Updated by Koen Deforche about 10 years ago

  • Status changed from InProgress to Resolved

Hey,

Thanks for this, this was indeed an oversight.

Regards,

koen

Actions #4

Updated by Koen Deforche about 10 years ago

  • Status changed from Resolved to Closed
Actions

Also available in: Atom PDF