[polari] Fix disabling "room" actions



commit 66bbd95f8887aa69d5d4b2aefa6f55935fc7ea4a
Author: Florian Müllner <florian muellner gmail com>
Date:   Mon Jul 22 16:02:33 2013 +0200

    Fix disabling "room" actions
    
    it's a bug, but for now we may not have a current room even while
    joined

 src/application.js |    2 +-
 1 files changed, 1 insertions(+), 1 deletions(-)
---
diff --git a/src/application.js b/src/application.js
index 358d7fc..a510493 100644
--- a/src/application.js
+++ b/src/application.js
@@ -145,7 +145,7 @@ const Application = new Lang.Class({
     },
 
     _updateRoomAction: function(action) {
-        action.enabled = this._chatroomManager.roomCount > 0;
+        action.enabled = this._chatroomManager.getActiveRoom() != null;
         if (action.state && !action.enabled)
             action.change_state(GLib.Variant.new('b', false));
     },


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