git-svn-id: https://svn.webkit.org/repository/webkit/trunk@24213
268f45cc-cd09-0410-ab3c-
d52691b4dbfc
+2007-07-11 George Staikos <staikos@kde.org>
+
+ Reviewed by Olliej.
+
+ Make comboboxes update when the current item is changed.
+
+ * platform/qt/PopupMenuQt.cpp:
+ (WebCore::PopupMenu::updateFromElement):
+ * platform/qt/QWebPopup.cpp:
+ (WebCore::QWebPopup::activeChanged):
+
2007-07-11 George Staikos <staikos@kde.org>
Reviewed by Brady.
void PopupMenu::updateFromElement()
{
+ client()->setTextFromItem(m_popupClient->selectedIndex());
}
bool PopupMenu::itemWritingDirectionIsNatural()
void QWebPopup::activeChanged(int index)
{
- if (m_client)
- m_client->valueChanged(index);
+ if (m_client) {
+ if (index >= 0)
+ m_client->valueChanged(index);
+ m_client->hidePopup();
+ }
}
}