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

index d35a682cbcb1e3a7587ef89ec6576198f6efa6da..2be0b22b3e8b44c939be598d878d1a0a63c36174 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();
 }