void WebPopup::popupClosed()
{
    if (!m_popup)
        return;

    m_popup->deleteLater();
    m_popup = 0;
    emit didHide();
}
void BrowserComboBox::select(int index)
{
    if (index >= 0)
        emit selectItem(index, false, false);
    emit didHide();
}
void BrowserComboBox::show(const QWebSelectData& data)
{
    QString fileName = writeJSONPopupData(m_id, data);
    if (fileName.isEmpty() || !m_server.showComboBoxPopup(m_id, fileName.toUtf8().constData()))
        QTimer::singleShot(0, this, SIGNAL(didHide()));
}