Commit ea85b350211a9e66d429958b56f22c81be741b03
1 parent
eea7d3d590
Exists in
master
and in
2 other branches
Segmentation Fault 원인 제거
Showing
1 changed file
with
3 additions
and
3 deletions
Show diff stats
app/gui/oven_control/ovenstatics.cpp
... | ... | @@ -529,7 +529,7 @@ void OvenStatistics::processErrorItems(error_item *item, error_exe_type errtype, |
529 | 529 | { |
530 | 530 | if(m_bPopupShow==false){ |
531 | 531 | m_bPopupShow = true; |
532 | - ErrorPopupDlg *dlg = new ErrorPopupDlg(QApplication::activeWindow(),MsgDesc,MsgTitle); | |
532 | + ErrorPopupDlg *dlg = new ErrorPopupDlg(0,MsgDesc,MsgTitle); | |
533 | 533 | connect(dlg,SIGNAL(destroyed(QObject*)),this, SLOT(onErrorPopupClosed())); |
534 | 534 | dlg->showFullScreen(); |
535 | 535 | m_nLastPopupidx = erridx; |
... | ... | @@ -549,7 +549,7 @@ void OvenStatistics::processErrorItems(error_item *item, error_exe_type errtype, |
549 | 549 | case error_type_engnonclr: |
550 | 550 | case error_type_onlyeng: |
551 | 551 | { |
552 | - EngineerMenuWindow *w = new EngineerMenuWindow(QApplication::activeWindow()); | |
552 | + EngineerMenuWindow *w = new EngineerMenuWindow(0); | |
553 | 553 | w->showFullScreen(); |
554 | 554 | break; |
555 | 555 | } |
... | ... | @@ -585,7 +585,7 @@ void OvenStatistics::onErrorPopupClosed(void){ |
585 | 585 | item = m_mapPopupList.first(); |
586 | 586 | m_nLastPopupidx = m_mapPopupList.firstKey(); |
587 | 587 | bNeedErrorClear = item.bNeedClear; |
588 | - ErrorPopupDlg *dlg = new ErrorPopupDlg(QApplication::activeWindow(),item.strDesc,item.strTitle); | |
588 | + ErrorPopupDlg *dlg = new ErrorPopupDlg(0,item.strDesc,item.strTitle); | |
589 | 589 | m_mapPopupList.remove(m_nLastPopupidx); |
590 | 590 | connect(dlg,SIGNAL(destroyed(QObject*)),this, SLOT(onErrorPopupClosed())); |
591 | 591 | dlg->showFullScreen(); | ... | ... |