Skip to content
This repository was archived by the owner on Aug 28, 2020. It is now read-only.

Commit c203c0a

Browse files
committed
have a safe name for projects
1 parent b5ac064 commit c203c0a

File tree

1 file changed

+4
-2
lines changed

1 file changed

+4
-2
lines changed

pugdebug/models/projects.py

Lines changed: 4 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -15,14 +15,16 @@
1515
class PugdebugProject(QSettings):
1616

1717
project_name = None
18+
safe_name = None
1819

1920
def __init__(self, project_name):
20-
self.project_name = project_name.lower().replace(' ', '-')
21+
self.project_name = project_name
22+
self.safe_name = project_name.lower().replace(' ', '-')
2123
super(PugdebugProject, self).__init__(
2224
QSettings.IniFormat,
2325
QSettings.UserScope,
2426
QCoreApplication.organizationName(),
25-
self.project_name
27+
self.safe_name
2628
)
2729

2830
self.setValue('project/name', self.project_name)

0 commit comments

Comments
 (0)