Qalculate / qalculate-qt

GNU General Public License v2.0
346 stars 40 forks source link

Incorrect history clearing if there are protected history items #133

Closed lkintact closed 2 weeks ago

lkintact commented 1 month ago

This is perhaps related to #132.

  1. Right-click in the history area and select Clear
  2. Type 1 and press Enter
  3. Type 2 and press Enter
  4. Right-click on #2 and select Protect
  5. Right-click in the history area and select Clear. Instead of removing #1 and leaving #2, Qalculate! duplicates #2. An image illustrating the issue:

incorrect_history_clearing

OS: Widows 10 Home Qalculate! 5.1.1.

hanna-kn commented 1 month ago

Fixed.

This issue occurred when there were exactly one history item left (after clear or remove). The history list was correct after restart.