     @property 'selectedAccount',
       get: -> @_selectedAccount
       set: (n) ->
-        if @_selectedAccount isnt n
-          @_selectedAccount = n
-          @activities = @_data[n.url].activities
-          @queries    = @_data[n.url].queries
-          @fireEvent(@SELECTED_ACCOUNT_CHANGED, @, n)
+        return if @_selectedAccount is n
+        @_selectedAccount = n
+        @activities = @_data[n.url].activities
+        @queries    = @_data[n.url].queries
+        @fireEvent(@SELECTED_ACCOUNT_CHANGED, @, n)
         Log.debug("selectedAccount set: " + n.url)
 
     # selected project.

    @property 'selectedTicket',
      get: -> @_selectedTicket
      set: (n) ->
        if @_selectedTicket isnt n
          @_selectedTicket = n
          @activities = @_data[n.url].activities if n and @_data[n.url]
          @fireEvent(@SELECTED_TICKET_CHANGED, @, n)

    # selected activity.
    _selectedActivity: null

    @property 'selectedProject',
      get: -> @_selectedProject
      set: (n) ->
        return if @_selectedProject is n
        @_selectedProject = n
        @selectedAccount = @_data[n.url].account
        @fireEvent(@SELECTED_PROJECT_CHANGED, @, n)
        Log.debug("selectedProject set")

    # selected ticket.
