Sign Up
Log In
Log In
or
Sign Up
Places
All Projects
Status Monitor
Collapse sidebar
openSUSE:Evergreen:11.1
kdelibs4
patch-r890652.diff
Overview
Repositories
Revisions
Requests
Users
Attributes
Meta
File patch-r890652.diff of Package kdelibs4
Subject: khtml form single-select - maintain selection on add From: wstephenson@suse.de Bug: bug#176253 Patch-upstream: 890652 --- khtml/html/html_formimpl.cpp (revision 890651) +++ khtml/html/html_formimpl.cpp (revision 890652) @@ -2135,7 +2135,10 @@ void HTMLSelectElementImpl::add( HTMLEle m_listItems.resize(m_listItems.size() + 1); m_listItems[m_listItems.size() - 1] = option; ++m_length; - m_recalcListItems = false; + if (m_length == 1 && !m_multiple) //we added the first item in single-select --- select it. + option->setSelected(true); + + m_recalcListItems = false; // was set by insertBefore } else if (!exceptioncode) setRecalcListItems(); } Index: khtml/html/html_formimpl.cpp ===================================================================
Locations
Projects
Search
Status Monitor
Help
OpenBuildService.org
Documentation
API Documentation
Code of Conduct
Contact
Support
@OBShq
Terms
openSUSE Build Service is sponsored by
The Open Build Service is an
openSUSE project
.
Sign Up
Log In
Places
Places
All Projects
Status Monitor