]> gitweb.stoutner.com Git - PrivacyBrowserPC.git/blobdiff - src/dialogs/DurableCookiesDialog.cpp
Move `enabled` above `disabled` in the domain settings spinners. https://redmine...
[PrivacyBrowserPC.git] / src / dialogs / DurableCookiesDialog.cpp
index d998c20ab840cae96de877f57dde2371caba5912..abc21e98e4573dc10a5ed0ab1add3e34f2e20c6d 100644 (file)
@@ -1,5 +1,5 @@
 /*
- * Copyright © 2022 Soren Stoutner <soren@stoutner.com>.
+ * Copyright 2022-2023 Soren Stoutner <soren@stoutner.com>.
  *
  * This file is part of Privacy Browser PC <https://www.stoutner.com/privacy-browser-pc>.
  *
@@ -150,7 +150,7 @@ void DurableCookiesDialog::beforeUpdate(int row, QSqlRecord &sqlRecord) const
     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);