From: isn Date: Fri, 27 Nov 2015 09:34:16 +0000 (+0300) Subject: refs #761 X-Git-Tag: v1.5~3 X-Git-Url: http://git.salome-platform.org/gitweb/?a=commitdiff_plain;h=38dd16da4f83fa884abbe154a65a22f5d96e7076;p=modules%2Fhydro.git refs #761 --- diff --git a/src/HYDROGUI/HYDROGUI_ExportFileOp.cxx b/src/HYDROGUI/HYDROGUI_ExportFileOp.cxx index 436c7c02..b256ba4f 100644 --- a/src/HYDROGUI/HYDROGUI_ExportFileOp.cxx +++ b/src/HYDROGUI/HYDROGUI_ExportFileOp.cxx @@ -159,7 +159,7 @@ void HYDROGUI_ExportFileOp::startOperation() //Even if attribute-checkbox is unchecked, the .dbf-file should be removed. //otherwise it may be used with wrong .shp-file. This is an incorrect behaivor. remove (aDBFFileName.toStdString().c_str()); - bool bToSaveAttrInfo = aDlg.getAttrCheckBoxState(); + bool bToSaveAttrInfo = aDlg.getAttrCheckBoxState() && !aDlg.getCurrentItem().isEmpty(); if (bToSaveAttrInfo) { //export attribute info