You've already forked gnatstudio
mirror of
https://github.com/AdaCore/gnatstudio.git
synced 2026-02-12 12:42:33 -08:00
eng/ide/gnatstudio#198 Fix for the Gtkada.File_Selector.Select_File
Fixes eng/ide/gnatstudio#198
This commit is contained in:
@@ -15,3 +15,8 @@ def run_test():
|
||||
gps_assert(tm, ['noext'])
|
||||
button = get_widget_by_name("file_selector_window.ok_button")
|
||||
button.clicked()
|
||||
|
||||
yield idle_modal_dialog(lambda:
|
||||
GPS.MDI.file_selector('*.xml', except_filter=''))
|
||||
dialog = get_window_by_title("Select a file", Gtk.Window.list_toplevels())
|
||||
get_button_from_label("gtk-cancel", dialog).clicked()
|
||||
|
||||
@@ -698,7 +698,9 @@ package body Gtkada.File_Selector is
|
||||
Fo := 0;
|
||||
end if;
|
||||
|
||||
if Pattern_Name (Nl) = ';' then
|
||||
if Nl in Pattern_Name'Range
|
||||
and then Pattern_Name (Nl) = ';'
|
||||
then
|
||||
No := 1;
|
||||
else
|
||||
No := 0;
|
||||
|
||||
Reference in New Issue
Block a user