Skip to content
Snippets Groups Projects
Commit 4978fcbf authored by inso's avatar inso
Browse files

Fixed wallet refreshing and removed double decimals for transfer

parent 01ffdc0a
No related branches found
No related tags found
No related merge requests found
......@@ -140,6 +140,9 @@
<property name="suffix">
<string/>
</property>
<property name="decimals">
<number>0</number>
</property>
<property name="maximum">
<double>99999999.000000000000000</double>
</property>
......
......@@ -21,17 +21,15 @@ class WalletsListModel(QAbstractListModel):
super(WalletsListModel, self).__init__(parent)
self.wallets = account.wallets
self.community = community
self.values = []
for w in self.wallets:
self.values.append(w.get_text(self.community))
def rowCount(self, parent):
return len(self.wallets)
def data(self, index, role):
row = index.row()
w = self.wallets[row]
if role == Qt.DisplayRole:
return self.values[row]
return w.get_text(self.community)
elif role == Qt.EditRole:
return self.wallets[row].name
......@@ -39,7 +37,6 @@ class WalletsListModel(QAbstractListModel):
if role == Qt.EditRole:
row = index.row()
self.wallets[row].name = value
self.values[row] = self.wallets[row].get_text()
self.dataChanged.emit(index, index)
return True
return False
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment