Skip to content

Commit

Permalink
get_item_index_by_text uses case-insensitive variant of string compar…
Browse files Browse the repository at this point in the history
…ison
  • Loading branch information
w0lek committed Dec 1, 2023
1 parent 13c729d commit 3dbbf1e
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion vpr/src/server/gtkcomboboxhelper.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -27,7 +27,7 @@ gint get_item_index_by_text(gpointer combo_box, gchar* target_item) {
// Check if the index is within bounds
if (gtk_tree_model_iter_nth_child(model, &iter, NULL, index)) {
gtk_tree_model_get(model, &iter, 0, &current_item_text, -1);
if (g_strcmp0(target_item, current_item_text) == 0) {
if (g_strcasecmp(target_item, current_item_text) == 0) {
result_index = index;
break;
}
Expand Down

0 comments on commit 3dbbf1e

Please sign in to comment.