From 31bcd8b4ba7fe72b5471243ae8ed02287318c630 Mon Sep 17 00:00:00 2001
From: Karsten Rink <karsten.rink@ufz.de>
Date: Tue, 8 Oct 2013 11:05:56 +0200
Subject: [PATCH] added dialog error msg

---
 Gui/DataView/GeoOnMeshMappingDialog.cpp | 7 +++++++
 1 file changed, 7 insertions(+)

diff --git a/Gui/DataView/GeoOnMeshMappingDialog.cpp b/Gui/DataView/GeoOnMeshMappingDialog.cpp
index 382f62dd9a2..f95259f6241 100644
--- a/Gui/DataView/GeoOnMeshMappingDialog.cpp
+++ b/Gui/DataView/GeoOnMeshMappingDialog.cpp
@@ -33,7 +33,14 @@ GeoOnMeshMappingDialog::~GeoOnMeshMappingDialog()
 void GeoOnMeshMappingDialog::accept()
 {
 	if (this->advancedMappingButton->isEnabled())
+	{
 		_new_geo_name = this->geoNameEdit->text().toStdString();
+		if (_new_geo_name.empty())
+		{
+			OGSError::box("Please enter name for new geometry.");
+			return;
+		}
+	}
 	this->done(QDialog::Accepted);
 }
 
-- 
GitLab