From 823513263eab8c570d59aeeb4332c8e8394b824a Mon Sep 17 00:00:00 2001 From: Jessica Hamilton Date: Wed, 18 Nov 2015 11:02:04 +1300 Subject: [PATCH] WebPositive: fix count of pagesCreated when starting up. With the new session restore code in WebPositive, it would restore the session and then open an extra window on top, as the pagesCreated counter did not add the new window(s) to the counter, only new tabs. --- src/apps/webpositive/BrowserApp.cpp | 1 + 1 file changed, 1 insertion(+) diff --git a/src/apps/webpositive/BrowserApp.cpp b/src/apps/webpositive/BrowserApp.cpp index 6bacb3fc476..ef865afe9ba 100644 --- a/src/apps/webpositive/BrowserApp.cpp +++ b/src/apps/webpositive/BrowserApp.cpp @@ -243,6 +243,7 @@ BrowserApp::ReadyToRun() if (window != NULL) { window->Show(); + pagesCreated++; for (int j = 1; archivedWindow.FindString("tab", j, &url) == B_OK; j++) {