Delete unnecessary code

Signed-off-by: Yue Lin Ho <b8732003@student.nsysu.edu.tw>
Fixed issue #2230: First click on order dialog is ignored

Signed-off-by: Yue Lin Ho <b8732003@student.nsysu.edu.tw>