]> Some of my projects - anidbudpclient.git/commitdiff
Consider 0 an invalid timestamp for a watched date.
authorAPTX <redacted>
Sun, 9 Jun 2013 01:50:16 +0000 (03:50 +0200)
committerAPTX <redacted>
Sun, 9 Jun 2013 01:50:16 +0000 (03:50 +0200)
filecommand.cpp

index d35a682..2be0b22 100644 (file)
@@ -485,7 +485,7 @@ QDateTime FileReply::myListViewDate() const
 {
        bool ok;
        uint timestamp = fileFlagData.value(FileFlag::MyListViewDate).toUInt(&ok);
-       if (ok)
+       if (ok && timestamp)
                return QDateTime::fromTime_t(timestamp);
        return QDateTime();
 }