From de7217aa4cb560dbad4396049194432f64dc7f67 Mon Sep 17 00:00:00 2001 From: Saman Ghannadzadeh Date: Mon, 11 Mar 2024 00:31:38 +0000 Subject: [PATCH] kde: fix detction of cancel button Fixes samhocevar/portable-file-dialogs#92 --- portable-file-dialogs.h | 2 ++ 1 file changed, 2 insertions(+) diff --git a/portable-file-dialogs.h b/portable-file-dialogs.h index 17aaefb..c30a7b3 100644 --- a/portable-file-dialogs.h +++ b/portable-file-dialogs.h @@ -1790,6 +1790,8 @@ inline message::message(std::string const &title, if (_choice == choice::yes_no || _choice == choice::yes_no_cancel) { m_mappings[0] = button::yes; + m_mappings[1] = button::no; + m_mappings[2] = button::cancel; m_mappings[256] = button::no; } }