Skip to content

Commit

Permalink
new version 0.7.0 / release candidate 2
Browse files Browse the repository at this point in the history
  • Loading branch information
steffen-foerster committed Oct 15, 2014
1 parent 045cf05 commit 080daaa
Show file tree
Hide file tree
Showing 2 changed files with 6 additions and 1 deletion.
5 changes: 5 additions & 0 deletions qml/js/History.js
Original file line number Diff line number Diff line change
Expand Up @@ -41,6 +41,11 @@ function applyNewHistorySize(newSize) {

function addHistoryValue(value) {
var maxSize = parseInt(Settings.get(Settings.keys.HISTORY_SIZE));

if (maxSize === 0) {
return;
}

var historySize = getHistorySize();

if (historySize > maxSize) {
Expand Down
2 changes: 1 addition & 1 deletion qml/pages/HistoryPage.qml
Original file line number Diff line number Diff line change
Expand Up @@ -137,6 +137,7 @@ Page {
}

PullDownMenu {
visible: historyModel.count > 0
MenuItem {
text: qsTr("Delete all")
onClicked: {
Expand All @@ -147,7 +148,6 @@ Page {
},
5000)
}
enabled: historyModel.count > 0
}
}

Expand Down

0 comments on commit 080daaa

Please sign in to comment.