Fixed issue #2230: First click on order dialog is ignored

Signed-off-by: Yue Lin Ho <b8732003@student.nsysu.edu.tw>
Signed-off-by: Sup Yut Sum <ch3cooli@gmail.com>
Delete unnecessary code

Signed-off-by: Yue Lin Ho <b8732003@student.nsysu.edu.tw>
Signed-off-by: Sup Yut Sum <ch3cooli@gmail.com>