From ea85b350211a9e66d429958b56f22c81be741b03 Mon Sep 17 00:00:00 2001 From: victor Date: Tue, 25 Apr 2017 11:16:57 +0900 Subject: [PATCH] =?UTF-8?q?Segmentation=20Fault=20=EC=9B=90=EC=9D=B8=20?= =?UTF-8?q?=EC=A0=9C=EA=B1=B0?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- app/gui/oven_control/ovenstatics.cpp | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/app/gui/oven_control/ovenstatics.cpp b/app/gui/oven_control/ovenstatics.cpp index 2ad435b..7d42df2 100644 --- a/app/gui/oven_control/ovenstatics.cpp +++ b/app/gui/oven_control/ovenstatics.cpp @@ -529,7 +529,7 @@ void OvenStatistics::processErrorItems(error_item *item, error_exe_type errtype, { if(m_bPopupShow==false){ m_bPopupShow = true; - ErrorPopupDlg *dlg = new ErrorPopupDlg(QApplication::activeWindow(),MsgDesc,MsgTitle); + ErrorPopupDlg *dlg = new ErrorPopupDlg(0,MsgDesc,MsgTitle); connect(dlg,SIGNAL(destroyed(QObject*)),this, SLOT(onErrorPopupClosed())); dlg->showFullScreen(); m_nLastPopupidx = erridx; @@ -549,7 +549,7 @@ void OvenStatistics::processErrorItems(error_item *item, error_exe_type errtype, case error_type_engnonclr: case error_type_onlyeng: { - EngineerMenuWindow *w = new EngineerMenuWindow(QApplication::activeWindow()); + EngineerMenuWindow *w = new EngineerMenuWindow(0); w->showFullScreen(); break; } @@ -585,7 +585,7 @@ void OvenStatistics::onErrorPopupClosed(void){ item = m_mapPopupList.first(); m_nLastPopupidx = m_mapPopupList.firstKey(); bNeedErrorClear = item.bNeedClear; - ErrorPopupDlg *dlg = new ErrorPopupDlg(QApplication::activeWindow(),item.strDesc,item.strTitle); + ErrorPopupDlg *dlg = new ErrorPopupDlg(0,item.strDesc,item.strTitle); m_mapPopupList.remove(m_nLastPopupidx); connect(dlg,SIGNAL(destroyed(QObject*)),this, SLOT(onErrorPopupClosed())); dlg->showFullScreen(); -- 2.1.4