[prev in list] [next in list] [prev in thread] [next in thread] 

List:       kde-commits
Subject:    branches/KDE/4.1/kdelibs/khtml/html
From:       Maks Orlovich <maksim () kde ! org>
Date:       2008-11-29 18:53:13
Message-ID: 1227984793.863783.23681.nullmailer () svn ! kde ! org
[Download RAW message or body]

SVN commit 890652 by orlovich:

Merged revision 890651:
When doing a fast-add of an option in a single-select, make sure we still 
mark the first option as selected. Fixes NVidia driver searcher.

BUG:176253

 M  +4 -1      html_formimpl.cpp  


--- branches/KDE/4.1/kdelibs/khtml/html/html_formimpl.cpp #890651:890652
@@ -2135,7 +2135,10 @@
         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();
 }
[prev in list] [next in list] [prev in thread] [next in thread] 

Configure | About | News | Add a list | Sponsored by KoreLogic