[smuxi: 3/4] Frontend-GNOME: fixed not showing newly added IRC servers in join bar



commit 9ad6e691b33a5d049f4ba88d71ea16290e2fe542
Author: Mirco Bauer <meebey meebey net>
Date:   Wed Aug 27 11:39:31 2014 +0200

    Frontend-GNOME: fixed not showing newly added IRC servers in join bar
    
    When a new server was added from the Server -> Add menu it would not appear in
    the join bar without restarting Smuxi.

 src/Frontend-GNOME/Views/MenuWidget.cs |    3 +++
 1 files changed, 3 insertions(+), 0 deletions(-)
---
diff --git a/src/Frontend-GNOME/Views/MenuWidget.cs b/src/Frontend-GNOME/Views/MenuWidget.cs
index e40bf66..06efdee 100644
--- a/src/Frontend-GNOME/Views/MenuWidget.cs
+++ b/src/Frontend-GNOME/Views/MenuWidget.cs
@@ -256,6 +256,9 @@ namespace Smuxi.Frontend.Gnome
                 
                 controller.AddServer(server);
                 controller.Save();
+
+                // reload server list in join bar
+                JoinWidget.InitNetworks(controller.GetNetworks());
             } catch (InvalidOperationException ex) {
                 Frontend.ShowError(Parent, _("Unable to add server: "), ex);
             } catch (Exception ex) {


[Date Prev][Date Next]   [Thread Prev][Thread Next]   [Thread Index] [Date Index] [Author Index]