From 7cbf0e1d7e1a9a9f0cc28151bb9ed7e0c09eff21 Mon Sep 17 00:00:00 2001 From: stippi Date: Wed, 17 Mar 2010 19:44:34 +0000 Subject: [PATCH] Fix the history restoration for real... duh! git-svn-id: http://svn.haiku-os.org/webpositive/webkit/trunk@325 94f232f2-1747-11df-bad5-a5bfde151594 --- src/apps/webpositive/BrowsingHistory.cpp | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/src/apps/webpositive/BrowsingHistory.cpp b/src/apps/webpositive/BrowsingHistory.cpp index c93482e088..cadb86e5bb 100644 --- a/src/apps/webpositive/BrowsingHistory.cpp +++ b/src/apps/webpositive/BrowsingHistory.cpp @@ -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;