Fix startup NSBitmapImageRep exceptions on macOS, due to missing files

See https://github.com/qgis/homebrew-qgisdev/issues/27

Exceptions happen when PNGs were changed to SVGs, but the .ui file was
not entirely updated. Then, when PNGs were deleted, a valid, but null,
QIcon gets created for the macOS menu item and the exception is thrown.

Qt 5.8.0 regression.
This commit is contained in:
Larry Shaffer 2017-04-05 21:17:19 -06:00
parent 375814e140
commit d303ca8cdc

View File

@ -2182,8 +2182,8 @@ Acts on currently active editable layer</string>
<bool>true</bool>
</property>
<property name="icon">
<iconset>
<normaloff>:/images/themes/default/mActionRotateFeature.png</normaloff>:/images/themes/default/mActionRotateFeature.png</iconset>
<iconset resource="../../images/images.qrc">
<normaloff>:/images/themes/default/mActionRotateFeature.svg</normaloff>:/images/themes/default/mActionRotateFeature.svg</iconset>
</property>
<property name="text">
<string>Rotate Feature(s)</string>
@ -2330,8 +2330,8 @@ Acts on currently active editable layer</string>
<bool>true</bool>
</property>
<property name="icon">
<iconset>
<normaloff>:/images/themes/default/mActionFillRing.png</normaloff>:/images/themes/default/mActionFillRing.png</iconset>
<iconset resource="../../images/images.qrc">
<normaloff>:/images/themes/default/mActionFillRing.svg</normaloff>:/images/themes/default/mActionFillRing.svg</iconset>
</property>
<property name="text">
<string>Fill Ring</string>