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

Intro redesign done.

This commit is contained in:
John Preston
2016-11-24 22:28:23 +03:00
parent 6e0394dd42
commit 3da0533339
71 changed files with 2150 additions and 1776 deletions

View File

@@ -30,7 +30,6 @@ class HTTPConnection : public AbstractConnection {
Q_OBJECT
public:
HTTPConnection(QThread *thread);
void sendData(mtpBuffer &buffer) override;
@@ -46,15 +45,13 @@ public:
QString transport() const override;
public slots:
public slots:
void requestFinished(QNetworkReply *reply);
static mtpBuffer handleResponse(QNetworkReply *reply);
static bool handleError(QNetworkReply *reply); // returnes "maybe bad key"
private:
enum Status {
WaitingHttp = 0,
UsingHttp,

View File

@@ -754,7 +754,7 @@ void ping() {
}
void cancel(mtpRequestId requestId) {
if (!_started) return;
if (!_started || !requestId) return;
mtpMsgId msgId = 0;
requestsDelays.remove(requestId);