From 38dd16da4f83fa884abbe154a65a22f5d96e7076 Mon Sep 17 00:00:00 2001 From: isn Date: Fri, 27 Nov 2015 12:34:16 +0300 Subject: [PATCH] refs #761 --- src/HYDROGUI/HYDROGUI_ExportFileOp.cxx | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) 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 -- 2.39.2