Bug #1436
closedmyWFileUpload->setDisabled(false) not working
0%
Description
Hi,
I have problem with reenabling a WFileUpload widget:
setDisabled(true) disables the widget,
but setDisabled(false) does not enable the widget.
problem may be in
void WWebWidget::propagateSetEnabled(bool enabled)
{
if (children_)
for (unsigned i = 0; i < children_->size(); ++i) {
WWidget *c = (*children_)[i];
if (!c->isDisabled()) <-------------- not sure about this condition
c->webWidget()->propagateSetEnabled(enabled);
}
}
regards,
Jan
Files
Updated by Koen Deforche about 12 years ago
- Status changed from New to InProgress
- Assignee set to Koen Deforche
- Target version set to 3.2.3
Hey Jan,
I think this the real problem is in WFileUpload --- but I recall that something was fixed related to this.
With what version do you see this problem ?
Regards,
koen
Updated by Koen Deforche about 12 years ago
- Status changed from InProgress to Feedback
Updated by Jan Hrubeš about 12 years ago
Hi Koen,
I'm working with Wt 3.2.1, boost 1_49_0.
regards,
Jan
Updated by Koen Deforche about 12 years ago
Hey Jan,
I believe this has been fixed since. We are prepping a 3.2.3 release, so it would be nice if you could see if the last git version works for you.
Regards,
koen
Updated by Jan Hrubeš about 12 years ago
Hi Koen,
the last git clone (Mo, 8.10.2012) suffers with this error
wt-121008git/src/web/ImageUtils.C: In function `std::string Wt::Image::identifyImageMimeType(const std::vector<unsigned char, std::allocator<unsigned char> >&)':
wt-121008git/src/web/ImageUtils.C:70: error: 'const class std::vector<unsigned char, std::allocator<unsigned char> >' has no member named 'data'
you probably changed a data type from std::string to std::vector and std::vector has no data() method.
H.
Updated by Jan Hrubeš about 12 years ago
&header[0]
instead of
header.data()
should work.
Updated by Koen Deforche about 12 years ago
Hey Jan,
I've just pushed an new git version that fixes this (this was also a problem on windows platforms).
Regards,
koen
Updated by Jan Hrubeš about 12 years ago
Hi Koen
Issue with WFileUpload::setDisabled() persist in last git version (11.10.2012)
Tested with Opera, FF and Chrome on code similar to this:
WFileUpload* fu = new WFileUpload( wApp->root() );
WPushButton* bte = new WPushButton("enable", wApp->root() );
bte->clicked().connect(boost::bind( &WFileUpload::setDisabled, fu, false ));
WPushButton* btd = new WPushButton("disable", wApp->root() );
btd->clicked().connect(boost::bind( &WFileUpload::setDisabled, fu, true ));
regards,
Jan
Updated by Koen Deforche about 12 years ago
- File disable.cpp disable.cpp added
Hey,
I fail to reproduce this though. Can you change the attached example so that it fails ?
Regards,
koen
Updated by Jan Hrubeš about 12 years ago
Hi,
I checked it again and found bad linking path.
Last git is working, issue can be closed.
regards,
Jan
Updated by Koen Deforche about 12 years ago
- Status changed from Feedback to Resolved
Updated by Koen Deforche about 12 years ago
- Status changed from Resolved to Closed
Fixed in Wt 3.2.3 RC1.