* enabled status of "Save As Draft" menu item should now be correctly maintained
git-svn-id: file:///srv/svn/repos/haiku/haiku/trunk@22954 a95241bf-73f2-0310-859d-f6bbb57e9c96
This commit is contained in:
@@ -833,10 +833,14 @@ TMailWindow::MenusBeginning()
|
|||||||
BTextView *textView;
|
BTextView *textView;
|
||||||
|
|
||||||
if (!fIncoming) {
|
if (!fIncoming) {
|
||||||
enable = strlen(fHeaderView->fTo->Text())
|
bool gotToField = fHeaderView->fTo->Text()[0] != 0;
|
||||||
|| strlen(fHeaderView->fBcc->Text());
|
bool gotCcField = fHeaderView->fCc->Text()[0] != 0;
|
||||||
fSendNow->SetEnabled(enable);
|
bool gotBccField = fHeaderView->fBcc->Text()[0] != 0;
|
||||||
fSendLater->SetEnabled(enable);
|
bool gotSubjectField = fHeaderView->fSubject->Text()[0] != 0;
|
||||||
|
bool gotText = fContentView->fTextView->Text()[0] != 0;
|
||||||
|
fSendNow->SetEnabled(gotToField || gotBccField);
|
||||||
|
fSendLater->SetEnabled(fChanged && (gotToField || gotCcField
|
||||||
|
|| gotBccField || gotSubjectField || gotText));
|
||||||
|
|
||||||
be_clipboard->Lock();
|
be_clipboard->Lock();
|
||||||
fPaste->SetEnabled(be_clipboard->Data()->HasData("text/plain", B_MIME_TYPE)
|
fPaste->SetEnabled(be_clipboard->Data()->HasData("text/plain", B_MIME_TYPE)
|
||||||
|
|||||||
Reference in New Issue
Block a user