Thank you Koen.Issue #4233 created.

Regards.
________________
Mario Diethelm



------ Original Message ------
From: "Koen Deforche" <[email protected]>
To: [email protected]; [email protected]
Sent: 23-06-2015 13:28:23
Subject: Re: [Wt-interest] WComboBox question

Hey,

> I am using some WComboBox objects based on WSortFilterProxyModel as underlying data model. With the WComboBox objects based on WStandardItemModel you can use setCurrentIndex(-1) to clear the current selection, but with the WComboBox objects based on WSortFilterProxyModel, even after resetting the filter (setFilterRegExp(".*")) the setCurrentIndex(-1) call sets the WComboBox object to the first element (index 0) instead of clear the current selection.
>
> Is this the expected behavior? Is there a mechanism to clear the selection for a WComboBox based on a WSortFilterProxyModel?

I suspect this is a bug. The ability to support "no selection" is a recent change.

Can you file this as a bug on redmine?

Koen
------------------------------------------------------------------------------
Monitor 25 network devices or servers for free with OpManager!
OpManager is web-based network management software that monitors 
network devices and physical & virtual servers, alerts via email & sms 
for fault. Monitor 25 devices for free with no restriction. Download now
http://ad.doubleclick.net/ddm/clk/292181274;119417398;o
_______________________________________________
witty-interest mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/witty-interest

Reply via email to