Commit 10df1d7d authored by Laurent Montel's avatar Laurent Montel 😁
Browse files

symplify code

parent a3f4c001
......@@ -61,7 +61,7 @@ MolcalcWidget::MolcalcWidget(QWidget *parent) : QWidget(parent)
QFile file(fileName);
// Check file validity
if (!(!file.open(QIODevice::ReadOnly | QIODevice::Text))) {
if (file.open(QIODevice::ReadOnly | QIODevice::Text)) {
qCDebug(KALZIUM_LOG) << fileName << " opened";
QTextStream in(&file);
// Get all shortForms and fullForms in the file.
......
Supports Markdown
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