Home GnuPG
Diffusion GpgOL 6952548acac8

Implement T6125, show a Messagebox if we encounter incompatibel addins
6952548acac8Unpublished

Unpublished Commit ยท Learn More

Not On Permanent Ref: This commit is not an ancestor of any permanent ref.

Description

Implement T6125, show a Messagebox if we encounter incompatibel addins

* src/common.cpp: Move code of gpgol_message_box to new a new function
                  gpgol_message_box_icon with an additional parameter
                  to set the message box icon. In the function
                  only pass the GPGOL icon resource if icon is set to
                  MB_USERICON.
                  Change gpgol_message_box to call the new function
                  setting the icon to MB_USERICON
* src/common.h:   Add definition for gpgol_message_box_icon function
* src/oomhelp.h:  Rename log_addins to check_and_log_addins and the
                  return type from void to std::string
* src/oomhelp.cpp: Add a set of ProgId which are incompatible.
                   in the renamed log_function check if the addins
                   ProgID is in the set and add its description to the
                   returned string.
* src/mailitem-evets.cpp: Call check_and_log_addins and show a warning
                        messagebox with gpgol_message_box_icon if it
                        returns a non empty string

On handling the firat READ event we already enumerated the active
addins in log_addins. So I enhaned the code to check for incompatibel
addins and return their names, renamed the function to reflect this
and added a function to show a messagebox with windows ICON and not
only the GPG icon.

Details

Provenance
mmontkowskiAuthored on Mon, Feb 3, 4:19 PM
Parents
rOaa429d6f0b73: Fix T7079 by adding new level 3 icons
Branches
Unknown
Tags
Unknown
References
work/markus_montkowski/T6125

Event Timeline