Skip to content

Commit

Permalink
Fix category selection in NewGradeDialog
Browse files Browse the repository at this point in the history
  • Loading branch information
leolost2605 committed Nov 28, 2023
1 parent 177a599 commit d5a5a94
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions src/new-grade-dialog.vala
Original file line number Diff line number Diff line change
Expand Up @@ -24,8 +24,8 @@ public class NewGradeDialog : Adw.MessageDialog {

//CATEGORY
var cat_model = new Gtk.StringList (null);
for (int i = 0; subject.categories[i] != null; i++) {
cat_model.append (subject.categories[i].name);
foreach (var category in subject.categories_by_name.get_keys ()) {
cat_model.append (category);
}

grade_spinbutton = new Adw.SpinRow (grade_adjustment, 1, 2) {
Expand Down

0 comments on commit d5a5a94

Please sign in to comment.