Permalink
Browse files

fix server list crash on missing flag

  • Loading branch information...
hypatia2 committed Aug 18, 2015
1 parent f25e768 commit 70f6c0944f291452bdd70b3c833efcc73967387f
Showing with 5 additions and 1 deletion.
  1. +5 −1 fruho/main.tcl
@@ -2184,7 +2184,11 @@ proc ServerListClicked {} {
set city "Unknown"
}
set ip [dict get $sitem ip]
$wt insert {} end -id $id -image [img load 24/flag/$ccode] -values [list $country $city $ip]
set flag 24/flag/$ccode
if {![img exists $flag]} {
set flag 24/flag/EMPTY
}
$wt insert {} end -id $id -image [img load $flag] -values [list $country $city $ip]
}
$wt selection set $ssid
grid columnconfigure $w 0 -weight 1

0 comments on commit 70f6c09

Please sign in to comment.