From 15abc8b810b1d546710d6ea00927c7e3db322237 Mon Sep 17 00:00:00 2001 From: SET Date: Sun, 8 Nov 2020 09:03:45 +0100 Subject: [PATCH] Prefer transient popup to change key expiry date This is a trade-off. When the calendar of the WDateEdit is clicked, widget PopupExpiryTime gets hidden, forcing to show it again. If PopupExpiryTime::setTransient is false, it will obviously persist, until explicitly hidden with the Close button. Not satisfactory to change key selection while it is visible, nor to do other tasks like changing certification trust level, certifying uids.... whatever. Forcing its persistence while playing with many events has not been successful, and quite ugly. --- PopupExpiryTime.cpp | 13 ++++++++++++- 1 file changed, 12 insertions(+), 1 deletion(-) diff --git a/PopupExpiryTime.cpp b/PopupExpiryTime.cpp index aff4575..fa07289 100644 --- a/PopupExpiryTime.cpp +++ b/PopupExpiryTime.cpp @@ -22,7 +22,18 @@ PopupExpiryTime::PopupExpiryTime(WWidget * anchorWidget, TransientMessageWidget m_tmwMessage = txtMessage; m_cwMain = NULL; m_keyFpr = WString::Empty; - setTransient(false); + /* + * Trade-off. + * When the calendar of WDateEdit is clicked, this popup gets hidden, + * forcing to show it again. + * If setTransient is false, this popup will obviously persist, until + * explicitly hidden with the Close button. Not satisfactory to change key + * selection while it is visible, nor to do other tasks like changing + * certification trust level, certifying uids.... whatever. + * Forcing its persistence while playing with many events has not been + * successful, and quite ugly. + */ + setTransient(true); setAnchorWidget(anchorWidget); setWidth(width); }