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(); }