From 1ac7d779a74b4349a44865402cb1b29867427e4b Mon Sep 17 00:00:00 2001 From: Chocobo1 Date: Mon, 29 May 2017 00:22:59 +0800 Subject: [PATCH] Set expiration date for newly added cookie to +2 years from now, instead of +99 years. This fixes the ambiguity that users could assume the date was in the past, but in fact it's in the future. Ex. now date is 5/28/17, +99 years = 5/28/16, +2 years = 5/28/19 --- src/gui/cookiesmodel.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/gui/cookiesmodel.cpp b/src/gui/cookiesmodel.cpp index d3e08412b..7c283a66f 100644 --- a/src/gui/cookiesmodel.cpp +++ b/src/gui/cookiesmodel.cpp @@ -145,7 +145,7 @@ bool CookiesModel::insertRows(int row, int count, const QModelIndex &parent) if ((row < 0) || (row > m_cookies.size())) return false; QNetworkCookie newCookie; - newCookie.setExpirationDate(QDateTime::currentDateTime().addYears(99)); + newCookie.setExpirationDate(QDateTime::currentDateTime().addYears(2)); beginInsertRows(parent, row, row + count - 1); while (count-- > 0)