mirror of
https://github.com/qbittorrent/qBittorrent
synced 2025-07-15 01:33:07 -07:00
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
This commit is contained in:
parent
a585b02e76
commit
1ac7d779a7
1 changed files with 1 additions and 1 deletions
|
@ -145,7 +145,7 @@ bool CookiesModel::insertRows(int row, int count, const QModelIndex &parent)
|
||||||
if ((row < 0) || (row > m_cookies.size())) return false;
|
if ((row < 0) || (row > m_cookies.size())) return false;
|
||||||
|
|
||||||
QNetworkCookie newCookie;
|
QNetworkCookie newCookie;
|
||||||
newCookie.setExpirationDate(QDateTime::currentDateTime().addYears(99));
|
newCookie.setExpirationDate(QDateTime::currentDateTime().addYears(2));
|
||||||
|
|
||||||
beginInsertRows(parent, row, row + count - 1);
|
beginInsertRows(parent, row, row + count - 1);
|
||||||
while (count-- > 0)
|
while (count-- > 0)
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue