Mail: fAccount text control is no longer used.
This commit is contained in:
@@ -149,7 +149,6 @@ THeaderView::THeaderView(bool incoming, bool resending, int32 defaultAccount)
|
|||||||
:
|
:
|
||||||
fAccountMenu(NULL),
|
fAccountMenu(NULL),
|
||||||
fAccountID(defaultAccount),
|
fAccountID(defaultAccount),
|
||||||
fAccount(NULL),
|
|
||||||
fFromControl(NULL),
|
fFromControl(NULL),
|
||||||
fBccControl(NULL),
|
fBccControl(NULL),
|
||||||
fDateView(NULL),
|
fDateView(NULL),
|
||||||
@@ -461,6 +460,9 @@ THeaderView::SetAccount(int32 id)
|
|||||||
{
|
{
|
||||||
fAccountID = id;
|
fAccountID = id;
|
||||||
|
|
||||||
|
if (fAccountMenu == NULL)
|
||||||
|
return;
|
||||||
|
|
||||||
for (int32 i = fAccountMenu->CountItems(); i-- > 0;) {
|
for (int32 i = fAccountMenu->CountItems(); i-- > 0;) {
|
||||||
BMenuItem* item = fAccountMenu->ItemAt(i);
|
BMenuItem* item = fAccountMenu->ItemAt(i);
|
||||||
if (item == NULL)
|
if (item == NULL)
|
||||||
@@ -478,6 +480,9 @@ THeaderView::SetAccount(int32 id)
|
|||||||
void
|
void
|
||||||
THeaderView::SetAccount(const char* name)
|
THeaderView::SetAccount(const char* name)
|
||||||
{
|
{
|
||||||
|
if (fAccountMenu == NULL)
|
||||||
|
return;
|
||||||
|
|
||||||
BMenuItem* item = fAccountMenu->FindItem(name);
|
BMenuItem* item = fAccountMenu->FindItem(name);
|
||||||
if (item != NULL) {
|
if (item != NULL) {
|
||||||
item->SetMarked(true);
|
item->SetMarked(true);
|
||||||
@@ -496,7 +501,7 @@ THeaderView::SetFromMessage(BEmailMessage* mail)
|
|||||||
SetCc(mail->CC());
|
SetCc(mail->CC());
|
||||||
|
|
||||||
BString accountName;
|
BString accountName;
|
||||||
if (fAccount != NULL && mail->GetAccountName(accountName) == B_OK)
|
if (mail->GetAccountName(accountName) == B_OK)
|
||||||
SetAccount(accountName);
|
SetAccount(accountName);
|
||||||
|
|
||||||
// Set the date on this message
|
// Set the date on this message
|
||||||
@@ -553,8 +558,6 @@ THeaderView::AttachedToWindow()
|
|||||||
fCcControl->SetTarget(Looper());
|
fCcControl->SetTarget(Looper());
|
||||||
if (fBccControl != NULL)
|
if (fBccControl != NULL)
|
||||||
fBccControl->SetTarget(Looper());
|
fBccControl->SetTarget(Looper());
|
||||||
if (fAccount != NULL)
|
|
||||||
fAccount->SetTarget(Looper());
|
|
||||||
if (fAccountMenu != NULL)
|
if (fAccountMenu != NULL)
|
||||||
fAccountMenu->SetTargetForItems(this);
|
fAccountMenu->SetTargetForItems(this);
|
||||||
|
|
||||||
|
|||||||
@@ -94,7 +94,6 @@ public:
|
|||||||
private:
|
private:
|
||||||
BPopUpMenu* fAccountMenu;
|
BPopUpMenu* fAccountMenu;
|
||||||
int32 fAccountID;
|
int32 fAccountID;
|
||||||
BTextControl* fAccount;
|
|
||||||
BTextControl* fFromControl;
|
BTextControl* fFromControl;
|
||||||
LabelView* fToLabel;
|
LabelView* fToLabel;
|
||||||
AddressTextControl* fToControl;
|
AddressTextControl* fToControl;
|
||||||
|
|||||||
Reference in New Issue
Block a user