Commit 6115d09
committed
gui: notify the user early if any of the recipients is invalid.
As we are already validating the entire recipient data before adding it to the temporal recipients vector (address and amount), the 'SendCoinsEntry' validation function can just return the proper error code, so it can be processed and the user can be notified right away.
Without requiring to unlock the wallet, nor walk through the entire recipients vector later again on the flow just to validate the same things twice.1 parent c6832ce commit 6115d09
File tree
3 files changed
+35
-43
lines changed- src/qt
3 files changed
+35
-43
lines changed| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
252 | 252 | | |
253 | 253 | | |
254 | 254 | | |
255 | | - | |
256 | | - | |
257 | | - | |
258 | | - | |
259 | | - | |
260 | | - | |
261 | | - | |
262 | | - | |
263 | | - | |
264 | | - | |
265 | | - | |
266 | | - | |
267 | | - | |
| 255 | + | |
| 256 | + | |
| 257 | + | |
| 258 | + | |
| 259 | + | |
| 260 | + | |
268 | 261 | | |
269 | | - | |
| 262 | + | |
| 263 | + | |
270 | 264 | | |
| 265 | + | |
| 266 | + | |
271 | 267 | | |
272 | 268 | | |
273 | 269 | | |
274 | | - | |
275 | | - | |
| 270 | + | |
276 | 271 | | |
277 | 272 | | |
278 | 273 | | |
279 | 274 | | |
280 | 275 | | |
281 | | - | |
282 | | - | |
| 276 | + | |
283 | 277 | | |
284 | 278 | | |
285 | 279 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
131 | 131 | | |
132 | 132 | | |
133 | 133 | | |
134 | | - | |
| 134 | + | |
135 | 135 | | |
136 | | - | |
137 | | - | |
138 | | - | |
139 | | - | |
140 | | - | |
| 136 | + | |
141 | 137 | | |
142 | | - | |
143 | | - | |
| 138 | + | |
| 139 | + | |
144 | 140 | | |
145 | | - | |
146 | | - | |
147 | | - | |
148 | | - | |
149 | | - | |
150 | | - | |
| 141 | + | |
151 | 142 | | |
152 | 143 | | |
153 | | - | |
154 | | - | |
155 | | - | |
156 | | - | |
157 | | - | |
| 144 | + | |
| 145 | + | |
| 146 | + | |
| 147 | + | |
158 | 148 | | |
159 | 149 | | |
160 | | - | |
161 | | - | |
| 150 | + | |
| 151 | + | |
162 | 152 | | |
163 | | - | |
| 153 | + | |
164 | 154 | | |
165 | 155 | | |
166 | | - | |
| 156 | + | |
| 157 | + | |
167 | 158 | | |
168 | 159 | | |
169 | 160 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
6 | 6 | | |
7 | 7 | | |
8 | 8 | | |
| 9 | + | |
9 | 10 | | |
10 | 11 | | |
11 | 12 | | |
12 | | - | |
13 | 13 | | |
14 | 14 | | |
15 | 15 | | |
| |||
34 | 34 | | |
35 | 35 | | |
36 | 36 | | |
37 | | - | |
| 37 | + | |
| 38 | + | |
| 39 | + | |
| 40 | + | |
| 41 | + | |
| 42 | + | |
| 43 | + | |
| 44 | + | |
38 | 45 | | |
39 | 46 | | |
40 | 47 | | |
| |||
0 commit comments