Skip to content

Commit

Permalink
Fix unchecking public project still loads public project (#229)
Browse files Browse the repository at this point in the history
  • Loading branch information
dimasciput authored Jul 21, 2017
1 parent c356808 commit cb52054
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions cadasta/gui/tools/wizard/step_project_download01.py
Original file line number Diff line number Diff line change
Expand Up @@ -148,6 +148,7 @@ def get_available_projects_finished(self, result):
"""
self.throbber_loader.setVisible(False)
self.project_combo_box.clear()
self.public_projects_checkbox.setEnabled(True)
if result[0]:
projects = sorted(result[1], key=itemgetter('slug'))

Expand Down Expand Up @@ -254,6 +255,7 @@ def project_combo_box_changed(self):
def get_available_projects(self):
"""Get available projects."""
self.throbber_loader.setVisible(True)
self.public_projects_checkbox.setEnabled(False)
self.project_api = Project(
on_finished=self.get_available_projects_finished)

Expand Down

0 comments on commit cb52054

Please sign in to comment.