forked from AuroraMiddleware/gtk
multiselection: Don't emit nonsensical signals
I forgot to add a check here. We only want to emit a ::selection-changed if we actually changed it.
This commit is contained in:
parent
93abd8da59
commit
b047b7838d
@ -212,7 +212,8 @@ gtk_multi_selection_add_or_remove (GtkSelectionModel *model,
|
||||
}
|
||||
while (n > 0);
|
||||
|
||||
gtk_selection_model_selection_changed (model, min, max - min + 1);
|
||||
if (min <= max)
|
||||
gtk_selection_model_selection_changed (model, min, max - min + 1);
|
||||
|
||||
return TRUE;
|
||||
}
|
||||
|
Loading…
Reference in New Issue
Block a user