Fix the history restoration for real... duh!
git-svn-id: http://svn.haiku-os.org/webpositive/webkit/trunk@325 94f232f2-1747-11df-bad5-a5bfde151594
This commit is contained in:
parent
e405ff6af7
commit
7cbf0e1d7e
@ -154,7 +154,7 @@ BrowsingHistory::BrowsingHistory()
|
||||
|
||||
BMessage historyItemArchive;
|
||||
for (int32 i = 0; settingsArchive.FindMessage("history item", i, &historyItemArchive) == B_OK; i++) {
|
||||
privateAddItem(BrowsingHistoryItem(&historyItemArchive), false);
|
||||
privateAddItem(BrowsingHistoryItem(&historyItemArchive), true);
|
||||
historyItemArchive.MakeEmpty();
|
||||
}
|
||||
}
|
||||
@ -206,6 +206,8 @@ void BrowsingHistory::clear()
|
||||
saveSettings();
|
||||
}
|
||||
|
||||
// #pragma mark - private
|
||||
|
||||
void BrowsingHistory::privateClear()
|
||||
{
|
||||
int32 count = countItems();
|
||||
@ -248,8 +250,6 @@ bool BrowsingHistory::privateAddItem(const BrowsingHistoryItem& item, bool inter
|
||||
return true;
|
||||
}
|
||||
|
||||
// #pragma mark - private
|
||||
|
||||
void BrowsingHistory::saveSettings()
|
||||
{
|
||||
BFile settingsFile;
|
||||
|
Loading…
x
Reference in New Issue
Block a user