/*
- * Copyright © 2022 Soren Stoutner <soren@stoutner.com>.
+ * Copyright 2022-2024 Soren Stoutner <soren@stoutner.com>.
*
* This file is part of Privacy Browser PC <https://www.stoutner.com/privacy-browser-pc>.
*
// KDE Frameworks headers.
#include <KLocalizedString>
-DurableCookiesDialog::DurableCookiesDialog() : QDialog(nullptr)
+DurableCookiesDialog::DurableCookiesDialog(QWidget *parentWidgetPointer) : QDialog(parentWidgetPointer)
{
// Set the dialog window title.
setWindowTitle(i18nc("The durable cookies dialog window title", "Durable Cookies"));
if (sqlRecord.isGenerated(CookiesDatabase::DOMAIN) || sqlRecord.isGenerated(CookiesDatabase::NAME) || sqlRecord.isGenerated(CookiesDatabase::PATH))
{
// Get the ID of the cookie
- int id = sqlRecord.value(CookiesDatabase::_ID).toInt();
+ int id = sqlRecord.value(CookiesDatabase::ID).toInt();
// Get the cookie.
QNetworkCookie *cookiePointer = CookiesDatabase::getCookieById(id);