Merge lp:~robin-gloster/ubuntu-calculator-app/empty-formula-mem into lp:~ubuntu-calculator-dev/ubuntu-calculator-app/old_trunk

Proposed by Robin Gloster
Status: Merged
Approved by: Dalius
Approved revision: 17
Merged at revision: 17
Proposed branch: lp:~robin-gloster/ubuntu-calculator-app/empty-formula-mem
Merge into: lp:~ubuntu-calculator-dev/ubuntu-calculator-app/old_trunk
Diff against target: 20 lines (+6/-4)
1 file modified
calculator.qml (+6/-4)
To merge this branch: bzr merge lp:~robin-gloster/ubuntu-calculator-app/empty-formula-mem
Reviewer Review Type Date Requested Status
Ubuntu Phone Apps Jenkins Bot continuous-integration Needs Fixing
Dalius (community) Approve
Review via email: mp+151115@code.launchpad.net

Commit message

don't add empty formula to memory

Description of the change

Doesn't add empty formula to memory.

To post a comment you must log in.
Revision history for this message
Dalius (dalius-sandbox) wrote :

You are putting me in uncomfortable situation :) This is already fixed in this branch: http://bazaar.launchpad.net/~f-riccardo87/ubuntu-calculator-app/tweaks/revision/18

review: Approve
Revision history for this message
Ubuntu Phone Apps Jenkins Bot (ubuntu-phone-apps-jenkins-bot) wrote :

FAILED: Autolanding.
No commit message was specified in the merge proposal. Hit 'Add commit message' on the merge proposal web page or follow the link below. You can approve the merge proposal yourself to rerun.
https://code.launchpad.net/~robin-gloster/ubuntu-calculator-app/empty-formula-mem/+merge/151115/+edit-commit-message

review: Needs Fixing (continuous-integration)
Revision history for this message
Robin Gloster (robin-gloster) wrote :

Sorry didn't notice. If it happens again just remove it if it's easier for you :)

Preview Diff

[H/L] Next/Prev Comment, [J/K] Next/Prev File, [N/P] Next/Prev Hunk
1=== modified file 'calculator.qml'
2--- calculator.qml 2013-02-27 12:22:41 +0000
3+++ calculator.qml 2013-02-28 22:20:26 +0000
4@@ -154,10 +154,12 @@
5 property color color: "#FFFFFF";
6
7 function addCurrentToMemory() {
8- memory.get(memory.count-1).isLastItem = false
9- memory.get(memory.count-1).formula_data = JSON.stringify(formula)
10- memory.append({'formula': memory.get(memory.count-1).formula, 'answer': memory.get(count-1).answer, 'formula_data': '', 'isLastItem': true})
11- positionViewAtEnd();
12+ if (formula_text !== '') {
13+ memory.get(memory.count-1).isLastItem = false
14+ memory.get(memory.count-1).formula_data = JSON.stringify(formula)
15+ memory.append({'formula': memory.get(memory.count-1).formula, 'answer': memory.get(count-1).answer, 'formula_data': '', 'isLastItem': true})
16+ positionViewAtEnd();
17+ }
18 }
19
20 function showError() {

Subscribers

People subscribed via source and target branches