• When moving to trash with mouse documents stay selected

    By Josef Prusa 2 decades ago

    I have not experienced it myself but I use Del key to trash messages. Unfortunately both of our top managers use mouse drag-and-drop to trash them. The trashed messages remain selected and when they trash another messages the same way they get confising error messages ("Variable not set" or "Document has been deleted ").



    Here is a quick fix:


    • Go to script library "OpenNTFLibraryUI"
    • Find sub "NTFFolderAdd "




    • At the very end just before "End Select" add "Call source.DeselectAll". Like this



      Case Else:
      If Right$(Target, 1) = QF_INDICATOR Then<br/>
          Dim Addr As String<br/>
          Dim prefOpt As String<br/>
      '   Addr = Mid$(Cstr(Target), 4, Len(Cstr(Target)))<br/>
          Addr = Left$(Target,Len(Target)-1)<br/>
          Call QuickForward (source.Documents, Addr)  <br/>
          <br/>
      End If<br/>
      If Target=&quot;Trash&quot; then Call source.DeselectAll<br/>
      

              'The test for &quot;Trash&quot; is needed otherwise  &quot;Move to Folder&quot; from Action Bar would break.<br/>
      


      End Select





      This way the draged docs get deselected, hopefully no harm done…



      Is this fix sufficient? I know it fixed our problems, I am just not completely sure it does not break anything else.

      If it's OK, could it be incorporated for the next release?



      Thanks



      Josef Prusa
    • A small correction

      By Josef Prusa 2 decades ago

      Fixed it the main document.