Skip to content

Commit 0b7d576

Browse files
authored
Fix "No map selected!" message box when clicking search map editbox (#391)
extra check added to client/gui/admin_maps.lua line 69 to make exception if the source is the search bar editbox.
1 parent 95f3c36 commit 0b7d576

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

[admin]/admin/client/gui/admin_maps.lua

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -66,7 +66,7 @@ function guiClick(button)
6666
guiGridListClear(aTabMap.MapList)
6767
triggerServerEvent("getMaps_s", localPlayer, true)
6868
end
69-
if guiGridListGetSelectedItem ( aTabMap.MapList ) == -1 then
69+
if ( source ~= aTabMap.MapListSearch ) and guiGridListGetSelectedItem ( aTabMap.MapList ) == -1 then
7070
aMessageBox ( "error", "No map selected!" )
7171
end
7272
local mapName = guiGridListGetItemText ( aTabMap.MapList, guiGridListGetSelectedItem( aTabMap.MapList ), 1 )

0 commit comments

Comments
 (0)