Skip to content

Commit

Permalink
fix: do not export geometry if dialog was canceled
Browse files Browse the repository at this point in the history
Signed-off-by: Thorsten Liebig <Thorsten.Liebig@gmx.de>
  • Loading branch information
thliebig committed Mar 7, 2013
1 parent aeadf06 commit d390440
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions QCSXCAD.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -829,6 +829,8 @@ void QCSXCAD::ExportGeometry(QString dirname, int type)
{
if (dirname.isEmpty())
dirname = QFileDialog::getExistingDirectory(this, tr("Choose directory to save data"));
if (dirname.isEmpty())
return;
int QtyProp = GetQtyProperties();
for (int i=0;i<QtyProp;++i)
{
Expand Down

0 comments on commit d390440

Please sign in to comment.