Ticket #1021: Mail.diff

File Mail.diff, 594 bytes (added by ksmith, 17 years ago)

Save as draft menu item is now only enabled if changes have been made.

  • Mail.cpp

     
    19041904        enable = strlen(fHeaderView->fTo->Text())
    19051905            || strlen(fHeaderView->fBcc->Text());
    19061906        fSendNow->SetEnabled(enable);
    1907         fSendLater->SetEnabled(enable);
    19081907
     1908        if(fChanged)
     1909            fSendLater->SetEnabled(true);
     1910        else
     1911            fSendLater->SetEnabled(false);
     1912
    19091913        be_clipboard->Lock();
    19101914        fPaste->SetEnabled(be_clipboard->Data()->HasData("text/plain", B_MIME_TYPE)
    19111915            && (fEnclosuresView == NULL || !fEnclosuresView->fList->IsFocus()));