From c2c745110fa67b9dd195c5adf1ff466aa1c6c73d Mon Sep 17 00:00:00 2001 From: Martin Ribelotta Date: Sun, 9 Apr 2017 17:07:59 -0300 Subject: [PATCH] Fix qt 5.6 LTS build issue Signed-off-by: Martin Ribelotta --- filepropertiesdialog.cpp | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) diff --git a/filepropertiesdialog.cpp b/filepropertiesdialog.cpp index fe5aaa7..c69dd22 100644 --- a/filepropertiesdialog.cpp +++ b/filepropertiesdialog.cpp @@ -74,8 +74,9 @@ FilePropertiesDialog::~FilePropertiesDialog() void FilePropertiesDialog::on_FilePropertiesDialog_accepted() { QFlags perms; -#define _(a, b) \ - perms.setFlag(QFile::b##a, ui->a##b->isChecked()) +#define _(a, b) do { \ + if (ui->a##b->isChecked()) perms |= (QFile::b##a); else perms &= ~(QFile::b##a); \ + } while(0) _(Owner, Read); _(Owner, Write); _(Owner, Exe);