summaryrefslogtreecommitdiffstats
path: root/torrentdisplay.cpp
diff options
context:
space:
mode:
Diffstat (limited to 'torrentdisplay.cpp')
-rw-r--r--torrentdisplay.cpp4
1 files changed, 2 insertions, 2 deletions
diff --git a/torrentdisplay.cpp b/torrentdisplay.cpp
index d9c094c..d018c31 100644
--- a/torrentdisplay.cpp
+++ b/torrentdisplay.cpp
@@ -17,7 +17,7 @@
#include "torrentdisplay.h"
-TorrentDisplay::TorrentDisplay(QWidget *parent, Qt::WindowFlags f) : QDialog(parent, f) {
+TorrentDisplay::TorrentDisplay(QWidget *parent) : QDialog(parent) {
//windows doesn't like it after setting up the GUI
setMinimumWidth(600);
@@ -119,7 +119,7 @@ void TorrentDisplay::setData(const QList<QVariant> data, const QString &filename
}
if(it.key() == "creation date"){
uint secs = it.value().toUInt();
- QDateTime when = QDateTime::fromTime_t(secs);
+ QDateTime when = QDateTime::fromSecsSinceEpoch(secs);
mCreated->setText(when.toString(Qt::RFC2822Date));
}
if(it.key() == "encoding"){