     @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)
+        return if @_selectedTicket is n or n is ""
+        @_selectedTicket = n
+        @activities = @_data[n.url].activities if n and @_data[n.url]
+        @fireEvent(@SELECTED_TICKET_CHANGED, @, n)
 
     # selected activity.
     _selectedActivity: null

    @property 'selectedQuery',
      get: -> @_selectedQuery
      set: (n) ->
        if @_selectedQuery isnt n
          @_selectedQuery = n
          @fireEvent(@SELECTED_QUERY_CHANGED, @, n)

    # query string for projects
    _projectQuery: ""

    @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.
