[SOLVED]Unable to connect to wifi

Hi,
Recently I switched from GNOME to KDE on my M4 installation, and since then I'm having problems with connecting to wifi.
The system connects automatically to my home wifi when I turn it on, but whenever I try to connect to any other wifi network, it says 'Connection failed'. And then, when I try to reconnect to my home wifi, it says the same thing again. So only way to connect to the internet again is by restarting computer, then it automatically connects on startup.
By the way, it's not the case where it says 'Connection failed' but it actually connects, mine says 'Connection failed' and it doesn't connect.
What could be the problem ?
Regards,
Darko.
Recently I switched from GNOME to KDE on my M4 installation, and since then I'm having problems with connecting to wifi.
The system connects automatically to my home wifi when I turn it on, but whenever I try to connect to any other wifi network, it says 'Connection failed'. And then, when I try to reconnect to my home wifi, it says the same thing again. So only way to connect to the internet again is by restarting computer, then it automatically connects on startup.
By the way, it's not the case where it says 'Connection failed' but it actually connects, mine says 'Connection failed' and it doesn't connect.
What could be the problem ?
Regards,
Darko.