fix: wrong list index type in file_dialog_gtk.cc (#12952)
This commit is contained in:
parent
0fb6dc79d8
commit
136105e353
1 changed files with 1 additions and 1 deletions
|
@ -210,7 +210,7 @@ base::FilePath FileChooserDialog::AddExtensionForFilename(
|
||||||
return path;
|
return path;
|
||||||
|
|
||||||
GSList* filters = gtk_file_chooser_list_filters(GTK_FILE_CHOOSER(dialog_));
|
GSList* filters = gtk_file_chooser_list_filters(GTK_FILE_CHOOSER(dialog_));
|
||||||
int i = g_slist_index(filters, selected_filter);
|
size_t i = g_slist_index(filters, selected_filter);
|
||||||
g_slist_free(filters);
|
g_slist_free(filters);
|
||||||
if (i >= filters_.size())
|
if (i >= filters_.size())
|
||||||
return path;
|
return path;
|
||||||
|
|
Loading…
Reference in a new issue