From e190c69288b22f9353731a057d27cd29567e2cda Mon Sep 17 00:00:00 2001 From: isn Date: Mon, 29 Jun 2015 15:10:17 +0300 Subject: [PATCH] Import of landcover: small bug fixes #2 --- src/HYDROGUI/HYDROGUI_ImportLandCoverOp.cxx | 6 ++++-- 1 file changed, 4 insertions(+), 2 deletions(-) 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(); } -- 2.39.2