Skip to content

Commit

Permalink
[FIX] Fix error on new projects from server
Browse files Browse the repository at this point in the history
  • Loading branch information
NathanW2 committed Nov 2, 2017
1 parent 0fcb946 commit c03124b
Showing 1 changed file with 7 additions and 6 deletions.
13 changes: 7 additions & 6 deletions src/roam/listmodulesdialog.py
Original file line number Diff line number Diff line change
Expand Up @@ -37,16 +37,17 @@ def refresh(self):
name = self.project['title']
desc = self.project['description']
splash = ":icons/download"
self.namelabel.setText(name)
self.descriptionlabel.setText(desc)
else:
name = self.project.name
desc = self.project.description
splash = self.project.splash

self.namelabel.setText(name)
self.descriptionlabel.setText(desc)
if not self.project.valid:
self.namelabel.setText(name + " (Invalid)")
self.descriptionlabel.setText(self.project.error)
self.namelabel.setText(name)
self.descriptionlabel.setText(desc)
if not self.project.valid:
self.namelabel.setText(name + " (Invalid)")
self.descriptionlabel.setText(self.project.error)

pix = QPixmap(splash)
self.imagelabel.setPixmap(pix)
Expand Down

0 comments on commit c03124b

Please sign in to comment.