Commit f69bbf79 by wuyang.zou

fix bug: 处理录单异常订单,在订单详情界面,此时有新订单入机,会最小化主界面,但是订单详情界面仍然显示,此时在点击重新录单会导致外卖插件程序闪退;

parent 16452743
...@@ -315,8 +315,7 @@ void DetailForm::on_detailBtn0_clicked() ...@@ -315,8 +315,7 @@ void DetailForm::on_detailBtn0_clicked()
QLOG_INFO()<<QString("[<<<<---DetailForm::on_detailBtn0_clicked: begin:--->>>>]")<<QString("重新录单")<< m_orderObject->id; QLOG_INFO()<<QString("[<<<<---DetailForm::on_detailBtn0_clicked: begin:--->>>>]")<<QString("重新录单")<< m_orderObject->id;
if(m_orderObject) { if(m_orderObject) {
emit processReTryInputOrder(m_orderObject->id); emit processReTryInputOrder(m_orderObject->id);
this->close(); this->hide();
//this->destroy();
} else { } else {
QLOG_ERROR()<<QString("[<<<<---DetailForm::on_detailBtn0_clicked: m_orderObject point is NULL--->>>>]"); QLOG_ERROR()<<QString("[<<<<---DetailForm::on_detailBtn0_clicked: m_orderObject point is NULL--->>>>]");
} }
......
 #include "mainForm.h" #include "mainForm.h"
#include "QsLog.h" #include "QsLog.h"
#include "ui_mainForm.h" #include "ui_mainForm.h"
#include "preDefine.h" #include "preDefine.h"
...@@ -222,6 +222,9 @@ void MainForm::on_mainBtnHide_clicked() ...@@ -222,6 +222,9 @@ void MainForm::on_mainBtnHide_clicked()
hide(); hide();
ui->mainEdtSearch->clear(); ui->mainEdtSearch->clear();
m_padForm->hide(); m_padForm->hide();
if(m_detailForm){
m_detailForm->hide();
}
showFloatForm(); showFloatForm();
} }
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment