E-mail settings are now stored as they should.

* ProtocolSettingsView was still using Archive() instead of SaveInto().
* However, it looks like BMessage::Set*() does corrupt the message fields.
This commit is contained in:
Axel Dörfler 2012-12-13 22:36:09 +01:00
parent 8651ebbe7a
commit acee88be99

View File

@ -158,13 +158,9 @@ ProtocolSettingsView::DetachedFromWindow()
if (fSettingsView == NULL)
return;
BMessage settings;
if (fSettingsView->Archive(&settings) != B_OK)
if (fSettingsView->SaveInto(fSettings) != B_OK)
return;
fSettings.MakeEmpty();
fSettings.Append(settings);
// We need to remove the settings view before unloading its add-on
fSettingsView->RemoveSelf();
delete fSettingsView;