After unsuccessfull search is now text cleared. Useful for barcode scanners. closes #299

master
Zdenek Jonak 8 years ago
parent 8a651871d0
commit f85b1c75d3

@ -512,4 +512,5 @@ void ShopForm::on_commoditySearch_returnPressed()
ShopItemPtr item = m_commodityModel->itemFromIndex(ui->commodityTable->currentIndex()); ShopItemPtr item = m_commodityModel->itemFromIndex(ui->commodityTable->currentIndex());
addItem(item, ui->spnCount->value()); addItem(item, ui->spnCount->value());
} }
ui->commoditySearch->clear();
} }

Loading…
Cancel
Save