Commit 0c132870 authored by Maxime Perrotin's avatar Maxime Perrotin

Fix saving issue

parent 1e348f19
......@@ -134,6 +134,9 @@ The background pattern was downloaded from www.subtlepatterns.com
Changelog
=========
2.0.28 (03/2019)
- Fix saving issue on new non-taste models
2.0.27 (03/2019)
- Fix type checking when using substrings
......
......@@ -141,7 +141,7 @@ except ImportError:
__all__ = ['opengeode', 'SDL_Scene', 'SDL_View', 'parse']
__version__ = '2.0.27'
__version__ = '2.0.28'
if hasattr(sys, 'frozen'):
# Detect if we are running on Windows (py2exe-generated)
......@@ -1955,7 +1955,11 @@ class SDL_View(QtGui.QGraphicsView, object):
# for the gpr file
pr_names = ['"' + os.path.basename(pr_file) + '"'
for pr_file in sdlSymbols.AST.pr_files]
first_pr = pr_names.pop()
try:
first_pr = pr_names.pop()
except IndexError:
# case of a new file: use the filename chosen from the file dialog
first_pr = '"{}"'.format(os.path.basename(filename))
other_pr = ", ".join(pr_names)
template_gpr_sdl = '''project {pr} is
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment