From: isn Date: Mon, 29 Jun 2015 12:10:17 +0000 (+0300) Subject: Import of landcover: small bug fixes #2 X-Git-Tag: v1.4.2~14 X-Git-Url: http://git.salome-platform.org/gitweb/?a=commitdiff_plain;h=e190c69288b22f9353731a057d27cd29567e2cda;p=modules%2Fhydro.git Import of landcover: small bug fixes #2 --- diff --git a/src/HYDROGUI/HYDROGUI_ImportLandCoverOp.cxx b/src/HYDROGUI/HYDROGUI_ImportLandCoverOp.cxx index bbf23d2f..bc49f7ef 100644 --- a/src/HYDROGUI/HYDROGUI_ImportLandCoverOp.cxx +++ b/src/HYDROGUI/HYDROGUI_ImportLandCoverOp.cxx @@ -272,9 +272,11 @@ void HYDROGUI_ImportLandCoverOp::onFileSelected() } else { - SUIT_MessageBox::warning( module()->getApp()->desktop(), tr( "IMPORT_LANDCOVER" ), "Cannot import land cover;\nThe shape type is not polygon" ); - + erasePreview(); + aPanel->setPolygonNames(QStringList()); + aPanel->setObjectName(""); QApplication::restoreOverrideCursor(); + SUIT_MessageBox::warning( module()->getApp()->desktop(), tr( "IMPORT_LANDCOVER" ), "Cannot import land cover;\nThe shape type is not polygon" ); commitDocOperation(); //abort(); }