diff options
Diffstat (limited to 'src')
-rw-r--r-- | src/mir_app/src/filexferdlg.cpp | 5 |
1 files changed, 3 insertions, 2 deletions
diff --git a/src/mir_app/src/filexferdlg.cpp b/src/mir_app/src/filexferdlg.cpp index a5396da239..3f76244d9e 100644 --- a/src/mir_app/src/filexferdlg.cpp +++ b/src/mir_app/src/filexferdlg.cpp @@ -599,8 +599,9 @@ INT_PTR CALLBACK DlgProcFileTransfer(HWND hwndDlg, UINT msg, WPARAM wParam, LPAR dbei.timestamp = time(0); DB::FILE_BLOB blob(dat->szFilenames, dat->szMsg); - if (auto *ppro = Proto_GetContactInstance(dat->hContact)) - ppro->OnSendOfflineFile(dbei, blob, fs); + if (auto *pa = Proto_GetAccount(ack->szModule)) + if (pa->ppro) + pa->ppro->OnSendOfflineFile(dbei, blob, fs); blob.write(dbei); db_event_add(dat->hContact, &dbei); |