2
0
mirror of https://github.com/kotatogram/kotatogram-desktop synced 2025-08-31 14:45:14 +00:00

improved bad_msg_notification handle and local time shifts

This commit is contained in:
John Preston
2014-08-01 15:09:46 +04:00
parent 22e1a7b730
commit 0e031f042d
17 changed files with 381 additions and 95 deletions

View File

@@ -227,6 +227,7 @@ struct VideoData {
if (l) {
l->cancel();
l->deleteLater();
l->rpcInvalidate();
}
fileName = QString();
modDate = QDateTime();
@@ -241,6 +242,7 @@ struct VideoData {
modDate = fileName.isEmpty() ? QDateTime() : QFileInfo(fileName).lastModified();
}
loader->deleteLater();
loader->rpcInvalidate();
loader = 0;
}
@@ -328,6 +330,7 @@ struct AudioData {
if (l) {
l->cancel();
l->deleteLater();
l->rpcInvalidate();
}
fileName = QString();
modDate = QDateTime();
@@ -342,6 +345,7 @@ struct AudioData {
modDate = fileName.isEmpty() ? QDateTime() : QFileInfo(fileName).lastModified();
}
loader->deleteLater();
loader->rpcInvalidate();
loader = 0;
}
@@ -427,6 +431,7 @@ struct DocumentData {
if (l) {
l->cancel();
l->deleteLater();
l->rpcInvalidate();
}
fileName = QString();
modDate = QDateTime();
@@ -441,6 +446,7 @@ struct DocumentData {
modDate = fileName.isEmpty() ? QDateTime() : QFileInfo(fileName).lastModified();
}
loader->deleteLater();
loader->rpcInvalidate();
loader = 0;
}