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

improved rpcClear() when deleting a complex RPCSender, clearing recent inline bots on logout

This commit is contained in:
John Preston
2016-02-28 15:36:23 +03:00
parent 798f800913
commit b678913da5
18 changed files with 74 additions and 46 deletions

View File

@@ -428,11 +428,11 @@ void IntroWidget::keyPressEvent(QKeyEvent *e) {
void IntroWidget::updateAdaptiveLayout() {
}
void IntroWidget::rpcInvalidate() {
if (phone) phone->rpcInvalidate();
if (code) code->rpcInvalidate();
if (signup) signup->rpcInvalidate();
if (pwdcheck) pwdcheck->rpcInvalidate();
void IntroWidget::rpcClear() {
if (phone) phone->rpcClear();
if (code) code->rpcClear();
if (signup) signup->rpcClear();
if (pwdcheck) pwdcheck->rpcClear();
}
IntroWidget::~IntroWidget() {

View File

@@ -29,7 +29,7 @@ class IntroPwdCheck;
class IntroStage;
class Text;
class IntroWidget : public TWidget {
class IntroWidget final : public TWidget {
Q_OBJECT
public:
@@ -71,7 +71,7 @@ public:
void finish(const MTPUser &user, const QImage &photo = QImage());
void rpcInvalidate();
void rpcClear();
void langChangeTo(int32 langId);
~IntroWidget();

View File

@@ -25,7 +25,7 @@ Copyright (c) 2014-2016 John Preston, https://desktop.telegram.org
#include "gui/flatinput.h"
#include "intro.h"
class IntroPwdCheck : public IntroStage, public RPCSender {
class IntroPwdCheck final : public IntroStage, public RPCSender {
Q_OBJECT
public:

View File

@@ -20,7 +20,6 @@ Copyright (c) 2014-2016 John Preston, https://desktop.telegram.org
*/
#pragma once
#include <QtWidgets/QWidget>
#include "gui/flatbutton.h"
#include "intro.h"