X-Git-Url: https://gerrit.automotivelinux.org/gerrit/gitweb?a=blobdiff_plain;f=HomeScreen%2Fsrc%2Fpopupwidget.cpp;h=1f062f1013f8ae578dfe12956dc0e3e1bca184bd;hb=09f2f0036f122e49aa49e6c446d723850192a725;hp=e7226ddbe949534f17e22ecacf70bb2b56906b0c;hpb=c32114eb2ccbe142d73c06a5992544d6eacb97d0;p=staging%2FHomeScreen.git diff --git a/HomeScreen/src/popupwidget.cpp b/HomeScreen/src/popupwidget.cpp index e7226dd..1f062f1 100644 --- a/HomeScreen/src/popupwidget.cpp +++ b/HomeScreen/src/popupwidget.cpp @@ -1,5 +1,5 @@ /* - * Copyright (C) 2016 Mentor Graphics Development (Deutschland) GmbH + * Copyright (C) 2016, 2017 Mentor Graphics Development (Deutschland) GmbH * * Licensed under the Apache License, Version 2.0 (the "License"); * you may not use this file except in compliance with the License. @@ -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();