From 8b8421ca19bdc1f8411e66653db9f649921f3916 Mon Sep 17 00:00:00 2001 From: Paul RASCLE Date: Thu, 19 Jul 2018 10:53:18 +0200 Subject: [PATCH] keep debug traces in export MED dialog --- src/SMESHGUI/SMESHGUI.cxx | 12 +++++++----- 1 file changed, 7 insertions(+), 5 deletions(-) diff --git a/src/SMESHGUI/SMESHGUI.cxx b/src/SMESHGUI/SMESHGUI.cxx index c1b913cb5..80951c800 100644 --- a/src/SMESHGUI/SMESHGUI.cxx +++ b/src/SMESHGUI/SMESHGUI.cxx @@ -811,7 +811,7 @@ namespace bool is_ok = false; while (!is_ok) { - //MESSAGE("******* Loop on file dialog ***********"); + MESSAGE("******* Loop on file dialog ***********"); isOkToWrite =true; if ( fd->exec() ) aFilename = fd->selectedFile(); @@ -820,13 +820,15 @@ namespace break; } aFormat = aFilterMap[fd->selectedNameFilter()]; - //MESSAGE("selected minor: " << aFormat << " file: " << aFilename.toUtf8().constData()); + MESSAGE("selected minor: " << aFormat << " file: " << aFilename.toUtf8().constData()); toOverwrite = fv->isOverwrite(aFilename); + MESSAGE("toOverwrite:" << toOverwrite); is_ok = true; if ( !aFilename.isEmpty() ) { if( !toOverwrite ) { // can't append to an existing using other format bool isVersionOk = SMESHGUI::GetSMESHGen()->CheckWriteCompatibility( aFilename.toUtf8().constData() ); + MESSAGE("Append check, isVersionOk:" << isVersionOk); if ( !isVersionOk ) { int aRet = SUIT_MessageBox::warning(SMESHGUI::desktop(), QObject::tr("SMESH_WRN_WARNING"), @@ -866,7 +868,7 @@ namespace QObject::tr("SMESH_BUT_YES"), QObject::tr("SMESH_BUT_NO"), QObject::tr("SMESH_BUT_CANCEL"), 0, 2); - //MESSAGE("answer collision name " << aRet); + MESSAGE("answer collision name " << aRet); if (aRet == 0) { toOverwrite = true; isOkToWrite = true; @@ -877,7 +879,7 @@ namespace } } } - //MESSAGE(" ****** end of file dialog loop") + MESSAGE(" ****** end of file dialog loop, toOverwrite:" << toOverwrite << " isOkToWrite:" << isOkToWrite); toCreateGroups = fd->IsChecked(0); toFindOutDim = fd->IsChecked(1); fieldSelWdg->GetSelectedFields(); @@ -914,7 +916,7 @@ namespace // } if ( isMED && isOkToWrite) { - //MESSAGE("OK to write MED file "<< aFilename.toUtf8().constData()); + MESSAGE("OK to write MED file "<< aFilename.toUtf8().constData()); aMeshIter = aMeshList.begin(); for( int aMeshIndex = 0; aMeshIter != aMeshList.end(); aMeshIter++, aMeshIndex++ ) { -- 2.39.2