From a84cb8e26f6dfb9e02e04f07c9276a97a745f5b2 Mon Sep 17 00:00:00 2001 From: Ronan Abhamon Date: Tue, 28 Feb 2017 15:04:18 +0100 Subject: [PATCH] fix(ui/modules/Common/Form/Fields/HexField): handle correctly edition terminated --- .../ui/modules/Common/Form/Fields/HexField.qml | 9 +++++---- submodules/belle-sip | 2 +- submodules/cmake-builder | 2 +- 3 files changed, 7 insertions(+), 6 deletions(-) diff --git a/linphone-desktop/ui/modules/Common/Form/Fields/HexField.qml b/linphone-desktop/ui/modules/Common/Form/Fields/HexField.qml index 93d291c86..de8b290a7 100644 --- a/linphone-desktop/ui/modules/Common/Form/Fields/HexField.qml +++ b/linphone-desktop/ui/modules/Common/Form/Fields/HexField.qml @@ -41,10 +41,11 @@ Item { } onEditingFinished: { - text = text.length - ? parseInt(textField.text, 16) - : 0 - wrapper.editingFinished(text) + if (!text.length) { + text = '0' + } + + wrapper.editingFinished(parseInt(textField.text, 16)) } } } diff --git a/submodules/belle-sip b/submodules/belle-sip index 7c5bb0a41..d95f3f9fc 160000 --- a/submodules/belle-sip +++ b/submodules/belle-sip @@ -1 +1 @@ -Subproject commit 7c5bb0a415950fe38f0857ed02c66b65b976be28 +Subproject commit d95f3f9fc6e1a9bacd50c6b5c5e80e24a44796f6 diff --git a/submodules/cmake-builder b/submodules/cmake-builder index 326a0976c..147c2540e 160000 --- a/submodules/cmake-builder +++ b/submodules/cmake-builder @@ -1 +1 @@ -Subproject commit 326a0976c0b42927056d39d99a396a2d0a8fc3da +Subproject commit 147c2540ef8399dad97b05350c17501f4f437de6