2
0
mirror of https://github.com/kotatogram/kotatogram-desktop synced 2025-08-31 06:35: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

@@ -2240,14 +2240,14 @@ void MainWidget::ui_showPeerHistory(quint64 peerId, qint32 showAtMsgId, bool bac
profile->hide();
profile->clear();
profile->deleteLater();
profile->rpcInvalidate();
profile->rpcClear();
profile = 0;
}
if (overview) {
overview->hide();
overview->clear();
overview->deleteLater();
overview->rpcInvalidate();
overview->rpcClear();
overview = 0;
}
clearBotStartToken(_peerInStack);
@@ -2390,13 +2390,13 @@ void MainWidget::showMediaOverview(PeerData *peer, MediaOverviewType type, bool
overview->hide();
overview->clear();
overview->deleteLater();
overview->rpcInvalidate();
overview->rpcClear();
}
if (profile) {
profile->hide();
profile->clear();
profile->deleteLater();
profile->rpcInvalidate();
profile->rpcClear();
profile = 0;
}
overview = new OverviewWidget(this, peer, type);
@@ -2446,14 +2446,14 @@ void MainWidget::showPeerProfile(PeerData *peer, bool back, int32 lastScrollTop)
overview->hide();
overview->clear();
overview->deleteLater();
overview->rpcInvalidate();
overview->rpcClear();
overview = 0;
}
if (profile) {
profile->hide();
profile->clear();
profile->deleteLater();
profile->rpcInvalidate();
profile->rpcClear();
}
profile = new ProfileWidget(this, peer);
_topBar.show();