Commit 916e8697 authored by Floréal Cabanettes's avatar Floréal Cabanettes

Fix proposals edit on escape

parent eca2ee5b
......@@ -3270,18 +3270,18 @@ bool QRecipeWriter::eventFilter(QObject *object, QEvent *event)
{
model4->setItem(consEdit, new QStandardItem(model4->item(consEdit)->text()));
consEdit = -1;
ui->editMat->clear();
ui->editCons->clear();
}
else
{
model4->removeRow(consEdit);
consEdit = -1;
ui->editMat->clear();
ui->editCons->clear();
}
matComm = false;
consComm = false;
ui->commButton->setStyleSheet("QPushButton {background-color: none;}");
}
ui->listMat->setSelectionMode(QAbstractItemView::ExtendedSelection);
ui->listCons->setSelectionMode(QAbstractItemView::ExtendedSelection);
return true;
}
else if (ke->key() == Qt::Key_Backspace)
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment