Skip to content
Snippets Groups Projects
Commit 97ad08d7 authored by inso's avatar inso
Browse files

Fixing bug in communities management process

parent 9642d6c5
Branches
Tags
No related merge requests found
......@@ -30,6 +30,7 @@ class Community(object):
# After initializing the community from latest peers,
# we refresh its peers tree
logging.debug("Creating community")
found_peers = self.peering()
for p in found_peers:
if p.pubkey not in [peer.pubkey for peer in peers]:
......
......@@ -106,16 +106,7 @@ class StepPageCommunities(Step):
return True
def process_next(self):
'''
We create the community
'''
logging.debug("Communities NEXT ")
server = self.config_dialog.lineedit_server.text()
port = self.config_dialog.spinbox_port.value()
account = self.config_dialog.account
self.config_dialog.community = account.add_community(server, port)
self.config_dialog.refresh()
pass
def display_page(self):
logging.debug("Communities DISPLAY")
......
......@@ -190,6 +190,7 @@ class ProcessConfigureCommunity(QDialog, Ui_CommunityConfigurationDialog):
else:
return
if self.community not in self.account.communities:
self.account.add_community(self.community)
self.accepted.emit()
self.close()
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment