Fix of empty string in Wifi Config dialog ssid combobox on Mac

This commit is contained in:
David Kocik 2023-11-06 09:21:47 +01:00
parent e45af4eb54
commit c0f5a3803e

View File

@ -416,6 +416,7 @@ void WifiScanner::scan()
for ( const std::string& ssid : ssids)
{
if (!ssid.empty())
m_map[boost::nowide::widen(ssid)] = {};
}
if (m_map.empty()) {
@ -423,6 +424,7 @@ void WifiScanner::scan()
{
// Second implementation calling "airport" system command
get_connected_ssid(m_current_ssid);
if (!m_current_ssid.empty())
m_map[m_current_ssid] = std::string();
}
catch (const std::exception&)