diff --git a/src/kits/mail/MailSettings.cpp b/src/kits/mail/MailSettings.cpp index 0f5ca3aa50..53f45f238d 100644 --- a/src/kits/mail/MailSettings.cpp +++ b/src/kits/mail/MailSettings.cpp @@ -1,6 +1,6 @@ /* * Copyright 2001-2003 Dr. Zoidberg Enterprises. All rights reserved. - * Copyright 2004-2007, Haiku Inc. All rights reserved. + * Copyright 2004-2009, Haiku Inc. All rights reserved. * * Distributed under the terms of the MIT License. */ @@ -10,14 +10,15 @@ #include -#include -#include #include -#include #include +#include +#include +#include +#include #include #include -#include +#include #include #include @@ -34,9 +35,8 @@ namespace MailInternal { // #pragma mark - Chain methods -// -// To do -// + +// TODO! BMailChain* NewMailChain() { @@ -220,7 +220,7 @@ BMailSettings::Reload() path.Path(), strerror(ret)); return ret; } - + // clobber old settings data = tmp; return B_OK; @@ -312,7 +312,11 @@ BMailSettings::SetStatusWindowFrame(BRect frame) int32 BMailSettings::StatusWindowWorkspaces() { - return data.FindInt32("StatusWindowWorkSpace"); + uint32 workspaces; + if (data.FindInt32("StatusWindowWorkSpace", (int32*)&workspaces) != B_OK) + return B_ALL_WORKSPACES; + + return workspaces; }