X-Git-Url: https://gerrit.automotivelinux.org/gerrit/gitweb?a=blobdiff_plain;f=HomeScreen%2Fsrc%2Fpopupwidget.cpp;h=6cf00b188bc219c5daed07d52ae8c5bdd0bb1bb0;hb=feaff2a554749df0023e8da19bcd96a3334aa442;hp=e7226ddbe949534f17e22ecacf70bb2b56906b0c;hpb=c32114eb2ccbe142d73c06a5992544d6eacb97d0;p=staging%2FHomeScreen.git diff --git a/HomeScreen/src/popupwidget.cpp b/HomeScreen/src/popupwidget.cpp index e7226dd..6cf00b1 100644 --- a/HomeScreen/src/popupwidget.cpp +++ b/HomeScreen/src/popupwidget.cpp @@ -72,6 +72,7 @@ void PopupWidget::showPopup(int /*type*/, const QString &text) void PopupWidget::showPopupComboBox(const QString &text, const QStringList &choices) { + mp_ui->comboBox_choice->clear(); m_sendComboBoxChoice = true; mp_ui->comboBox_choice->addItems(choices); mp_ui->comboBox_choice->show(); @@ -84,7 +85,7 @@ void PopupWidget::on_pushButton_OK_clicked() { if (m_sendComboBoxChoice) { - comboBoxResult(mp_ui->comboBox_choice->currentText()); + emit comboBoxResult(mp_ui->comboBox_choice->currentText()); m_sendComboBoxChoice = false; } this->close();