[fix] ReaderGesture: Use getCurrentNetwork().ssid (#5334)

Otherwise ffi/util.template crashes on a table.
pull/5337/head
Frans de Jonge 5 years ago committed by GitHub
parent 17e437dbd0
commit 872c145f3a
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

@ -1434,8 +1434,8 @@ function ReaderGesture:gestureAction(action, ges)
local info_text
local current_network = NetworkMgr:getCurrentNetwork()
-- this method is only available for some implementations
if current_network then
info_text = T(_("Already connected to network %1."), NetworkMgr:getCurrentNetwork())
if current_network and current_network.ssid then
info_text = T(_("Already connected to network %1."), current_network.ssid)
else
info_text = _("Already connected.")
end

Loading…
Cancel
Save