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:
committed by
Alexandre Deckner
parent
e405ff6af7
commit
7cbf0e1d7e
@@ -154,7 +154,7 @@ BrowsingHistory::BrowsingHistory()
|
|||||||
|
|
||||||
BMessage historyItemArchive;
|
BMessage historyItemArchive;
|
||||||
for (int32 i = 0; settingsArchive.FindMessage("history item", i, &historyItemArchive) == B_OK; i++) {
|
for (int32 i = 0; settingsArchive.FindMessage("history item", i, &historyItemArchive) == B_OK; i++) {
|
||||||
privateAddItem(BrowsingHistoryItem(&historyItemArchive), false);
|
privateAddItem(BrowsingHistoryItem(&historyItemArchive), true);
|
||||||
historyItemArchive.MakeEmpty();
|
historyItemArchive.MakeEmpty();
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
@@ -206,6 +206,8 @@ void BrowsingHistory::clear()
|
|||||||
saveSettings();
|
saveSettings();
|
||||||
}
|
}
|
||||||
|
|
||||||
|
// #pragma mark - private
|
||||||
|
|
||||||
void BrowsingHistory::privateClear()
|
void BrowsingHistory::privateClear()
|
||||||
{
|
{
|
||||||
int32 count = countItems();
|
int32 count = countItems();
|
||||||
@@ -248,8 +250,6 @@ bool BrowsingHistory::privateAddItem(const BrowsingHistoryItem& item, bool inter
|
|||||||
return true;
|
return true;
|
||||||
}
|
}
|
||||||
|
|
||||||
// #pragma mark - private
|
|
||||||
|
|
||||||
void BrowsingHistory::saveSettings()
|
void BrowsingHistory::saveSettings()
|
||||||
{
|
{
|
||||||
BFile settingsFile;
|
BFile settingsFile;
|
||||||
|
|||||||
Reference in New Issue
Block a user