Network address and name can mix during first run
When running for the first time, selecting a network, selecting a channel, then canceling and selecting a new one results in joining the wrong network.
Steps to reproduce:
-
Run Polari for the first time.
-
Select Freenode from the list of networks.
-
Type "test" into the channel search and click the checkbox.
-
Click Back to return to the networks list.
-
Select GNOME.
-
Type "polari" into the channel search, click the checkbox, and click Done.
Results:
The network name on the channel list side panel is "GNOME", but it is connected to the Freenode network. A new channel called "polari" is created on the Freenode network.
Expected:
The network name is "GNOME" and it is connected to the GNOME network, connected to the polari channel.
EDIT: Fix steps to reproduce to actually reproduce the bug and make results (actual and expected) more specific.