Skip to content
Snippets Groups Projects
Commit 91cdeec6 authored by Karsten Rink's avatar Karsten Rink
Browse files

fixes issue where dialog would be closed if no geometry was selected

parent 5a0057f2
No related branches found
No related tags found
No related merge requests found
...@@ -79,7 +79,7 @@ GMSHPrefsDialog::GMSHPrefsDialog(const GeoLib::GEOObjects* geoObjects, QDialog* ...@@ -79,7 +79,7 @@ GMSHPrefsDialog::GMSHPrefsDialog(const GeoLib::GEOObjects* geoObjects, QDialog*
{ {
this->selectGeoButton->setDisabled(true); this->selectGeoButton->setDisabled(true);
this->deselectGeoButton->setDisabled(true); this->deselectGeoButton->setDisabled(true);
list.append("(No geometry available.)"); list.append("[No geometry available.]");
} }
_allGeo->setStringList(list); _allGeo->setStringList(list);
this->allGeoView->setModel(_allGeo); this->allGeoView->setModel(_allGeo);
...@@ -144,8 +144,8 @@ void GMSHPrefsDialog::accept() ...@@ -144,8 +144,8 @@ void GMSHPrefsDialog::accept()
{ {
if (this->_selGeo->stringList().empty()) if (this->_selGeo->stringList().empty())
{ {
OGSError::box("No geometry loaded. Geometric data\n is necessary for mesh generation."); OGSError::box("No geometry selected. Geometric data\n is necessary for mesh generation.");
this->done(QDialog::Rejected); return;
} }
std::vector<std::string> selectedObjects = this->getSelectedObjects(_selGeo->stringList()); std::vector<std::string> selectedObjects = this->getSelectedObjects(_selGeo->stringList());
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment