gui/qt: AddonsListModel::flags: fix disabling of addon
commit911f67ecfdf89d89829a7380510db59df74d3f32
authorFilip Roséen <filip@atch.se>
Sun, 21 May 2017 18:50:04 +0000 (21 20:50 +0200)
committerRémi Denis-Courmont <remi@remlab.net>
Sun, 21 May 2017 19:24:29 +0000 (21 22:24 +0300)
tree4e20a3cd15d880c403ddea828e7d981f0f83d995
parentb8d9372bfb2b2dd645b801af68e6179569acca52
gui/qt: AddonsListModel::flags: fix disabling of addon

In the affected path we would like to toggle so that the addon is in a
state where it is not enabled by removing that flag (if present), we
would however remove all flags of the addon as the right-hand side
expression will always evaluate to 0.

This fixes the issue by proper use of bitwise negate.

Signed-off-by: Rémi Denis-Courmont <remi@remlab.net>
modules/gui/qt/dialogs/plugins.cpp