david-swift / Memorize

Study flashcards in a native GNOME app
https://flathub.org/apps/io.github.david_swift.Flashcards
GNU General Public License v3.0
87 stars 9 forks source link

'Export' action causes crash when Set is empty #30

Closed rene-coty closed 5 months ago

rene-coty commented 5 months ago

Describe the bug

Clicking the 'Export Set' button makes the app crash if there is no Flashcard in the Set.

To Reproduce

  1. Create an empty set and remove the 2 default question templates
  2. Click 'Export set'

Expected behavior

I didn't expect that button to produce anything when the set is empty anyway ^^. Nonetheless it should at least be 'greyed out'/defined as not clickable to avoid this

david-swift commented 5 months ago

Fixed in e8a0387 (on the branch 46). Thanks!