Commit 2c5231b4 authored by Daniel Teske's avatar Daniel Teske
Browse files

QmakePriFileNode::ensureWriteableProFile: Fix typo

If the vcs::open fail, we should fall back to setPermissions.

Change-Id: I0204b07d27daeba03a2cda047a6eea0f21fe5d30
Reviewed-by: default avatarEike Ziller <>
parent 3c3c896d
......@@ -1135,7 +1135,7 @@ bool QmakePriFileNode::ensureWriteableProFile(const QString &file)
if (!fi.isWritable()) {
// Try via vcs manager
Core::IVersionControl *versionControl = Core::VcsManager::findVersionControlForDirectory(fi.absolutePath());
if (!versionControl || versionControl->vcsOpen(file)) {
if (!versionControl || !versionControl->vcsOpen(file)) {
bool makeWritable = QFile::setPermissions(file, fi.permissions() | QFile::WriteUser);
if (!makeWritable) {
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