Diffusion Ark 2af8d35e362b

Stop crashing when all read-write plugins are disabled

Authored by elvisangelaccio on Feb 18 2018, 10:23 PM.

Description

Stop crashing when all read-write plugins are disabled

CreateDialog assumes that m_supportedMimeTypes is never empty, it will crash otherwise.

If that's the case (i.e. when all the read-write plugins have been disabled),
we just disable the Compress menu item and the New action (as the
CreateDialog would just be useless).

For the New action, we also need to check whether the settings have been
changed and update its enabled status accordingly.

BUG: 390690
FIXED-IN: 17.12.3

Details

Committed
elvisangelaccioFeb 18 2018, 10:31 PM
Parents
R36:cec095d69f1d: CreateDialog: remove trailing whitespace after last separator
Branches
Unknown
Tags
Unknown