diff --git a/src/link/filelink.cpp b/src/link/filelink.cpp index 15548401c..55a2a4723 100644 --- a/src/link/filelink.cpp +++ b/src/link/filelink.cpp @@ -192,7 +192,8 @@ bool FileLink::isWritable() // This also avoids the creation of empty files const auto absoluteBasePath = QFileInfo(_file).absolutePath(); const bool isWritable = QFileInfo(absoluteBasePath).isWritable(); - return isWritable; + return isWritable + && _openModeFlag == QIODevice::WriteOnly || _openModeFlag == QIODevice::ReadWrite; } bool FileLink::finishConnection()