From da552a012d5a2188a788c7ba9cc6949b2d299ccf Mon Sep 17 00:00:00 2001 From: Ilya Kitaev Date: Sun, 9 Oct 2016 01:40:13 +0300 Subject: [PATCH] History: Fixed filter collapse --- pages/History.qml | 7 +++++-- 1 file changed, 5 insertions(+), 2 deletions(-) diff --git a/pages/History.qml b/pages/History.qml index 74dcf140..4c2a0dec 100644 --- a/pages/History.qml +++ b/pages/History.qml @@ -326,8 +326,11 @@ Rectangle { anchors.fill: parent onClicked: { parent.expanded = !parent.expanded - if(checkBox.checked) tableRect.height = Qt.binding(function(){ return parent.expanded ? tableRect.expandedHeight : tableRect.collapsedHeight }) - else tableRect.height = Qt.binding(function(){ return parent.expanded ? tableRect.expandedHeight : tableRect.middleHeight }) + if (advancedFilteringCheckBox.checked) { + tableRect.height = Qt.binding(function() { return parent.expanded ? tableRect.expandedHeight : tableRect.collapsedHeight }) + } else { + tableRect.height = Qt.binding(function() { return parent.expanded ? tableRect.expandedHeight : tableRect.middleHeight }) + } } } }