Skip to content
GitLab
Explore
Sign in
Primary navigation
Search or go to…
Project
sakia
Manage
Activity
Members
Labels
Plan
Issues
Issue boards
Milestones
Wiki
Code
Merge requests
Repository
Branches
Commits
Tags
Repository graph
Compare revisions
Deploy
Releases
Model registry
Monitor
Incidents
Service Desk
Analyze
Value stream analytics
Contributor analytics
Repository analytics
Model experiments
Help
Help
Support
GitLab documentation
Compare GitLab plans
Community forum
Contribute to GitLab
Provide feedback
Keyboard shortcuts
?
Snippets
Groups
Projects
This is an archived project. Repository and other project resources are read-only.
Show more breadcrumbs
clients
python
sakia
Commits
693b0000
Commit
693b0000
authored
9 years ago
by
inso
Browse files
Options
Downloads
Patches
Plain Diff
Fix bug
#322
Disable buttonbox while broadcasting certification/send
parent
b00fa641
No related branches found
No related tags found
No related merge requests found
Changes
2
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
src/sakia/gui/certification.py
+3
-0
3 additions, 0 deletions
src/sakia/gui/certification.py
src/sakia/gui/transfer.py
+3
-0
3 additions, 0 deletions
src/sakia/gui/transfer.py
with
6 additions
and
0 deletions
src/sakia/gui/certification.py
+
3
−
0
View file @
693b0000
...
...
@@ -54,6 +54,7 @@ class CertificationDialog(QDialog, Ui_CertificationDialog):
@asyncify
@asyncio.coroutine
def
accept
(
self
):
self
.
button_box
.
setEnabled
(
False
)
if
self
.
radio_contact
.
isChecked
():
for
contact
in
self
.
account
.
contacts
:
if
contact
[
'
name
'
]
==
self
.
combo_contact
.
currentText
():
...
...
@@ -64,6 +65,7 @@ class CertificationDialog(QDialog, Ui_CertificationDialog):
password
=
yield
from
self
.
password_asker
.
async_exec
()
if
password
==
""
:
self
.
button_box
.
setEnabled
(
True
)
return
QApplication
.
setOverrideCursor
(
Qt
.
WaitCursor
)
result
=
yield
from
self
.
account
.
certify
(
password
,
self
.
community
,
pubkey
)
...
...
@@ -85,6 +87,7 @@ class CertificationDialog(QDialog, Ui_CertificationDialog):
self
.
tr
(
"
Could not broadcast certification : {0}
"
.
format
(
result
[
1
])))
QApplication
.
restoreOverrideCursor
()
self
.
button_box
.
setEnabled
(
True
)
def
change_current_community
(
self
,
index
):
self
.
community
=
self
.
account
.
communities
[
index
]
...
...
This diff is collapsed.
Click to expand it.
src/sakia/gui/transfer.py
+
3
−
0
View file @
693b0000
...
...
@@ -93,6 +93,7 @@ class TransferMoneyDialog(QDialog, Ui_TransferMoneyDialog):
@asyncify
@asyncio.coroutine
def
accept
(
self
):
self
.
button_box
.
setEnabled
(
False
)
comment
=
self
.
edit_message
.
text
()
if
self
.
radio_contact
.
isChecked
():
...
...
@@ -108,6 +109,7 @@ class TransferMoneyDialog(QDialog, Ui_TransferMoneyDialog):
yield
from
QAsyncMessageBox
.
critical
(
self
,
self
.
tr
(
"
Money transfer
"
),
self
.
tr
(
"
No amount. Please give the transfert amount
"
),
QMessageBox
.
Ok
)
self
.
button_box
.
setEnabled
(
True
)
return
password
=
yield
from
self
.
password_asker
.
async_exec
()
...
...
@@ -139,6 +141,7 @@ class TransferMoneyDialog(QDialog, Ui_TransferMoneyDialog):
yield
from
QAsyncMessageBox
.
critical
(
self
,
self
.
tr
(
"
Transfer
"
),
result
[
1
])
QApplication
.
restoreOverrideCursor
()
self
.
button_box
.
setEnabled
(
True
)
@asyncify
@asyncio.coroutine
...
...
This diff is collapsed.
Click to expand it.
Preview
0%
Loading
Try again
or
attach a new file
.
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Save comment
Cancel
Please
register
or
sign in
to comment