From 9b57725b8ca33ade41c10adfc214ed4ea4a6ddf2 Mon Sep 17 00:00:00 2001 From: John Preston Date: Fri, 1 Feb 2019 11:17:23 +0300 Subject: [PATCH] Fix bad function call in data export cancel. --- .../SourceFiles/export/view/export_view_panel_controller.cpp | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/Telegram/SourceFiles/export/view/export_view_panel_controller.cpp b/Telegram/SourceFiles/export/view/export_view_panel_controller.cpp index 736ef843e..ab778ebe0 100644 --- a/Telegram/SourceFiles/export/view/export_view_panel_controller.cpp +++ b/Telegram/SourceFiles/export/view/export_view_panel_controller.cpp @@ -301,7 +301,9 @@ void PanelController::stopWithConfirmation(FnMut callback) { if (!_state.is()) { LOG(("Export Info: Stop Panel Without Confirmation.")); stopExport(); - callback(); + if (callback) { + callback(); + } return; } auto stop = [=, callback = std::move(callback)]() mutable {