1 Sep 2009 09:47
Re: Ext::ComboBox currentIndex crash
Hey Guy, 2009/8/31 Guy Deleeuw <G.De_Leeuw@...>: > Hello, > > Ext::ComboBox.currentIndex() crash. > With this combobox I use : > Ext::ComboBox* m_cbbExtContact = new Ext::ComboBox(0); > m_cbbExtContact->setTextSize(60); > m_cbbExtContact->setModel(m_pModel); > m_cbbExtContact->setModelColumn(1); > > m_cbbExtContact->setEditable(true); > m_cbbExtContact->setQueryDelay(2); > m_cbbExtContact->setMinQueryLength(1); Perhaps you see a crash because currentIndex() may be -1: when the user has added an entry by editing, this entry is not added to the underlying model. When this entry is the currently selected entry, currentIndex() will be -1, and currentText() will return the value. At least the test case in attachment works well for me, if not for you, can you modify it to reproduce the crash ? Regards, koen
------------------------------------------------------------------------------(Continue reading)
> The disabled tag is not interpreted correctly on some browser (e.g.
> Safari), so it would not work in general. We would need to investigate
> what is exactly allows from a security point of view, but perhaps
> hiding (and replacing with a text "Upload in progress" is the most
> likely thing to work.
RSS Feed