Commit 1b486afd authored by Filip Roséen's avatar Filip Roséen Committed by Hugo Beauzée-Luyssen

gui/qt: dialogs/plugins: remove extraneous parentheses to silence warning

The code of course works as it should, but llvm will spit out a
warning diagnostic due to extraneous parenthesis (thinking that it
probably should be "=" instead of "==").
Signed-off-by: default avatarHugo Beauzée-Luyssen <hugo@beauzee.fr>
parent 482ab047
......@@ -1346,7 +1346,7 @@ void AddonItemDelegate::editButtonClicked()
QWidget *editor = qobject_cast<QWidget *>(sender()->parent());
if ( !editor ) return;
int value = editor->property("Addon::state").toInt();
if ( ( value == ADDON_INSTALLED ) )
if ( value == ADDON_INSTALLED )
/* uninstall */
editor->setProperty("Addon::state", ADDON_UNINSTALLING );
else
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment