Skip to content

Commit

Permalink
fix #105301: Solved the Find function bug; now the searchComboBox sav…
Browse files Browse the repository at this point in the history
…es the searched values.
  • Loading branch information
RaphaelCojocaru authored and lasconic committed Feb 14, 2017
1 parent 0788a21 commit b0c288e
Showing 1 changed file with 4 additions and 2 deletions.
6 changes: 4 additions & 2 deletions mscore/musescore.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -2515,6 +2515,9 @@ bool MuseScore::eventFilter(QObject *obj, QEvent *event)
{
QKeyEvent* e = static_cast<QKeyEvent*>(event);
if(obj->isWidgetType() && e->key() == Qt::Key_Escape && e->modifiers() == Qt::NoModifier) {
// Close the search dialog when Escape is pressed:
if(_searchDialog != 0)
endSearch();
if (isActiveWindow()) {
obj->event(e);
if(currentScoreView())
Expand Down Expand Up @@ -4809,8 +4812,7 @@ void MuseScore::showSearchDialog()

qDebug("Line edit %p", searchCombo->lineEdit());

// does not work: connect(searchCombo->lineEdit(), SIGNAL(returnPressed()), SLOT(endSearch()));
connect(searchCombo->lineEdit(), SIGNAL(editingFinished()), SLOT(endSearch()));
connect(searchCombo->lineEdit(), SIGNAL(returnPressed()), SLOT(endSearch()));
}

searchCombo->clearEditText();
Expand Down

0 comments on commit b0c288e

Please sign in to comment.