- // Load the initial website.
- browserViewPointer->loadInitialWebsite();
-}
-
-void BrowserWindow::addCookieToList(const QNetworkCookie &newCookie) const
-{
- //qDebug() << "Add cookie: " << newCookie.toRawForm();
-
- // Add the new cookie to the list.
- cookieListPointer->push_front(newCookie);
-
- // Update the action text.
- cookiesActionPointer->setText(i18nc("The Cookies action, which also displays the number of cookies", "Cookies - %1", cookieListPointer->size()));
-
- // Update the cookie if it is durable and has new data.
- if (CookiesDatabase::isUpdate(newCookie))
- CookiesDatabase::updateCookie(newCookie);