]> SALOME platform Git repositories - modules/hydro.git/commitdiff
Salome HOME
Import of landcover: small bug fixes #2
authorisn <isn@opencascade.com>
Mon, 29 Jun 2015 12:10:17 +0000 (15:10 +0300)
committerisn <isn@opencascade.com>
Mon, 29 Jun 2015 12:10:17 +0000 (15:10 +0300)
src/HYDROGUI/HYDROGUI_ImportLandCoverOp.cxx

index bbf23d2fd7f4cba6face91aac926430ddeab8b0b..bc49f7efc7b6bc6ea51b08689e841f0494c7af17 100644 (file)
@@ -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();
     }