Shortcuts: don't store the contents of the columns in the settings file.
Fixes #11820 and #11849. Signed-off-by: Augustin Cavalier <[email protected]>
This commit is contained in:
committed by
Augustin Cavalier
parent
c0041cd124
commit
617096a497
@@ -191,9 +191,8 @@ ShortcutsSpec::ShortcutsSpec(BMessage* from)
|
||||
printf(" Error, no modifiers int32 in archive BMessage!\n");
|
||||
}
|
||||
|
||||
const char* string;
|
||||
for (int i = 0; (string = from->GetString("strings", i, NULL)); i++)
|
||||
SetField(new BStringField(string), i);
|
||||
for (int i = 0; i <= STRING_COLUMN_INDEX; i++)
|
||||
SetField(new BStringField(GetCellText(i)), i);
|
||||
}
|
||||
|
||||
|
||||
@@ -226,12 +225,6 @@ ShortcutsSpec::Archive(BMessage* into, bool deep) const
|
||||
|
||||
into->AddString("class", "ShortcutsSpec");
|
||||
|
||||
for (int i = 0; i < CountFields(); i++) {
|
||||
const BStringField* field =
|
||||
static_cast<const BStringField*>(GetField(i));
|
||||
into->AddString("strings", field->String());
|
||||
}
|
||||
|
||||
// These fields are for our prefs panel's benefit only
|
||||
into->AddString("command", fCommand);
|
||||
into->AddInt32("key", fKey);
|
||||
|
||||
Reference in New Issue
Block a user