Skip to content

Commit

Permalink
Fix qt 5.6 LTS build issue
Browse files Browse the repository at this point in the history
Signed-off-by: Martin Ribelotta <[email protected]>
  • Loading branch information
martinribelotta committed Apr 9, 2017
1 parent 7a29d79 commit c2c7451
Showing 1 changed file with 3 additions and 2 deletions.
5 changes: 3 additions & 2 deletions filepropertiesdialog.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -74,8 +74,9 @@ FilePropertiesDialog::~FilePropertiesDialog()
void FilePropertiesDialog::on_FilePropertiesDialog_accepted()
{
QFlags<QFile::Permission> 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);
Expand Down

0 comments on commit c2c7451

Please sign in to comment.