Wrong note numbering after moves

Bug #902840 reported by Andrea Basso
6
This bug affects 1 person
Affects Status Importance Assigned to Milestone
Footnote
Fix Committed
Undecided
Andrea Basso

Bug Description

Step to reproduce the bug:

I created a Notebook, called "School". Then I added a note in "School", called "Monday".
I created another Notebook, "Home". I moved "Monday" from "School" to "Home", the move was alright, but "School" counted 2 notes (when it should say 0) and "Home" counted -1 notes (when it should say 1).

Revision history for this message
Andrea Basso (voluntatefaber) wrote :

121,122c121,122
< app.categories.get (app.current_category).set_count_field (app, app.categories.get (app.current_category).count+1);
< this.category.set_count_field (app, this.category.count-1);
---
> app.categories.get (app.current_category).set_count_field (app, app.categories.get (app.current_category).count-1);
> this.category.set_count_field (app, this.category.count+1);

Changed in footnote:
assignee: nobody → Andrea Basso (voluntatefaber)
Revision history for this message
Andrea Basso (voluntatefaber) wrote :

Sorry, I mistakenly post the patch in the comment field.

Anyhow, the patch swap a "+1" with a "-1" and fixes the bug.

Revision history for this message
Jaap Broekhuizen (jaapz-b) wrote :

Thanks for the patch! I pushed the fix.

Changed in footnote:
status: New → Fix Committed
To post a comment you must log in.
This report contains Public information  
Everyone can see this information.

Other bug subscribers

Remote bug watches

Bug watches keep track of this bug in other bug trackers.