From f56dd756533312e121b66fb79f017853e1df8e25 Mon Sep 17 00:00:00 2001 From: inso <insomniak.fr@gmaiL.com> Date: Sat, 11 Feb 2017 14:21:25 +0100 Subject: [PATCH] Disable output capturing --- ci/travis/test.sh | 2 +- src/sakia/gui/dialogs/transfer/controller.py | 2 ++ 2 files changed, 3 insertions(+), 1 deletion(-) diff --git a/ci/travis/test.sh b/ci/travis/test.sh index 60d5d0af..645a7511 100755 --- a/ci/travis/test.sh +++ b/ci/travis/test.sh @@ -22,7 +22,7 @@ if [ $TRAVIS_OS_NAME == "linux" ] then py.test --cov=sakia tests/ else - py.test + py.test -s fi diff --git a/src/sakia/gui/dialogs/transfer/controller.py b/src/sakia/gui/dialogs/transfer/controller.py index 0b9000bb..cd17d135 100644 --- a/src/sakia/gui/dialogs/transfer/controller.py +++ b/src/sakia/gui/dialogs/transfer/controller.py @@ -141,6 +141,8 @@ class TransferController(QObject): amount = self.view.spinbox_amount.value() * 100 #TODO: Handle other amount base than 0 amount_base = self.model.current_base() + if amount_base <= 1: + amount_base = 0 logging.debug("Showing password dialog...") secret_key, password = self.password_input.get_salt_password() -- GitLab