From f85b1c75d338de5d15f7550b669d039a21015746 Mon Sep 17 00:00:00 2001 From: Zdenek Jonak Date: Tue, 25 Apr 2017 20:48:57 +0200 Subject: [PATCH] After unsuccessfull search is now text cleared. Useful for barcode scanners. closes #299 --- shop/shopform.cpp | 1 + 1 file changed, 1 insertion(+) diff --git a/shop/shopform.cpp b/shop/shopform.cpp index f5442be..cee9a9c 100644 --- a/shop/shopform.cpp +++ b/shop/shopform.cpp @@ -512,4 +512,5 @@ void ShopForm::on_commoditySearch_returnPressed() ShopItemPtr item = m_commodityModel->itemFromIndex(ui->commodityTable->currentIndex()); addItem(item, ui->spnCount->value()); } + ui->commoditySearch->clear(); }