aboutsummaryrefslogtreecommitdiff
path: root/plugins/ProfileEditor/forms
diff options
context:
space:
mode:
authorAqua-sama <aqua@iserlohn-fortress.net>2018-06-22 10:53:47 +0200
committerAqua-sama <aqua@iserlohn-fortress.net>2018-06-22 10:53:47 +0200
commit2c9b2c35356caf4fd8213cff7e599a7c49346ac2 (patch)
tree2cc1f5cd5b115ff40af5ee48ab3cb785bacbbf2b /plugins/ProfileEditor/forms
parentUpdate manpage (diff)
downloadsmolbote-2c9b2c35356caf4fd8213cff7e599a7c49346ac2.tar.xz
Fix various warnings
Diffstat (limited to 'plugins/ProfileEditor/forms')
-rw-r--r--plugins/ProfileEditor/forms/profileview.cpp5
1 files changed, 4 insertions, 1 deletions
diff --git a/plugins/ProfileEditor/forms/profileview.cpp b/plugins/ProfileEditor/forms/profileview.cpp
index 6f61db1..87546e5 100644
--- a/plugins/ProfileEditor/forms/profileview.cpp
+++ b/plugins/ProfileEditor/forms/profileview.cpp
@@ -153,7 +153,10 @@ void ProfileView::cookieAdded(const QNetworkCookie &cookie)
ui->cookies->setItem(index, 0, item);
ui->cookies->setItem(index, 1, new QTableWidgetItem(cookie.domain()));
ui->cookies->setItem(index, 2, new QTableWidgetItem(cookie.path()));
- ui->cookies->setItem(index, 3, new QTableWidgetItem(cookie.expirationDate().toString(Qt::RFC2822Date)));
+ if(cookie.isSessionCookie())
+ ui->cookies->setItem(index, 3, new QTableWidgetItem(tr("session")));
+ else
+ ui->cookies->setItem(index, 3, new QTableWidgetItem(cookie.expirationDate().toString(Qt::RFC2822Date)));
}
void ProfileView::cookieRemoved(const QNetworkCookie &cookie)