aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorIlya Kitaev <mbg033@gmail.com>2016-10-09 01:40:13 +0300
committerIlya Kitaev <mbg033@gmail.com>2016-10-10 00:25:56 +0300
commitda552a012d5a2188a788c7ba9cc6949b2d299ccf (patch)
tree0bb666d4819ab3bdd8d57731296c83c1dda7190a
parent7ed623e6d9c8eabcc3caefb381fea54d7c50b858 (diff)
downloadmonzero-gui-da552a012d5a2188a788c7ba9cc6949b2d299ccf.tar.gz
monzero-gui-da552a012d5a2188a788c7ba9cc6949b2d299ccf.tar.xz
monzero-gui-da552a012d5a2188a788c7ba9cc6949b2d299ccf.zip
History: Fixed filter collapse
-rw-r--r--pages/History.qml7
1 files 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 })
+ }
}
}
}