summaryrefslogtreecommitdiff
path: root/protocols/WhatsApp/src/qrcode.cpp
diff options
context:
space:
mode:
authorGeorge Hazan <ghazan@miranda.im>2022-10-31 12:20:22 +0300
committerGeorge Hazan <ghazan@miranda.im>2022-10-31 12:20:22 +0300
commit0e9387b9358caefc5870d7c52e5bd706be635b94 (patch)
tree83a33447a4308e851fbaf2de8efe2923ee710177 /protocols/WhatsApp/src/qrcode.cpp
parente295c14b076423b3cb683a7835f169af293e4f2d (diff)
fixes #3220 (WhatsApp: закрытое окно с QR-кодом недоступно до переподключения)
Diffstat (limited to 'protocols/WhatsApp/src/qrcode.cpp')
-rw-r--r--protocols/WhatsApp/src/qrcode.cpp6
1 files changed, 3 insertions, 3 deletions
diff --git a/protocols/WhatsApp/src/qrcode.cpp b/protocols/WhatsApp/src/qrcode.cpp
index 1cdc797916..a7973f6639 100644
--- a/protocols/WhatsApp/src/qrcode.cpp
+++ b/protocols/WhatsApp/src/qrcode.cpp
@@ -16,6 +16,8 @@ public:
void OnDestroy() override
{
+ m_proto->m_pQRDlg = nullptr;
+
if (!m_bSucceeded)
m_proto->ShutdownSession();
}
@@ -114,10 +116,8 @@ static INT_PTR __stdcall sttShowDialog(void *param)
void WhatsAppProto::CloseQrDialog()
{
- if (m_pQRDlg) {
+ if (m_pQRDlg)
m_pQRDlg->Close();
- m_pQRDlg = nullptr;
- }
}
bool WhatsAppProto::ShowQrCode(const CMStringA &ref)