       @renameView.destroy()
       delete @renameView
 
+    if @progressView
+      @progressView.destroy()
+      delete @progressView
+
     @childView.show()
     @beingDeleted = no
     @beingEdited = no
+    @beingProgress = no
     @callback = null
-    @unsetClass "being-deleted being-edited"
+    @unsetClass "being-deleted being-edited progress"
     @getDelegate().setKeyView()
 
   confirmDelete:(callback)->

      fileInfo = data.getLocalFileInfo()
      if fileInfo.lastUploadedChunk
        {lastUploadedChunk, totalChunks} = fileInfo
        if lastUploadedChunk is totalChunks
          data.removeLocalFileInfo()
          @updateProgressView 100
        else
          @updateProgressView 100 * lastUploadedChunk / totalChunks

  mouseDown:-> yes


      @resetView()
    @renameView.input.setFocus()

  showProgressView: (percent=0, determinate=yes)->

    unless @progressView
      @addSubView @progressView = new KDProgressBarView

    @progressView.setOption "determinate", determinate
    @progressView.updateBar percent, "%", ""
    if 0 <= percent < 100
    then @setClass "progress"
    else @utils.wait 1000, =>
      @resetView()

  pistachio:->

    """
    {{> @childView}}
    """
