From 86ab9870fdf3022ca143dfb3744a8634db9cd20a Mon Sep 17 00:00:00 2001 From: Alexander-Porter Date: Tue, 16 Jul 2024 08:35:42 +0800 Subject: [PATCH] =?UTF-8?q?=E9=99=8D=E4=BD=8E=E8=A7=A6=E5=8F=91=E4=B8=8A?= =?UTF-8?q?=E4=BC=A0=E7=9A=84=E9=97=A8=E6=A7=9B?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- SyncThread.cpp | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/SyncThread.cpp b/SyncThread.cpp index 127d08f..f58aaff 100644 --- a/SyncThread.cpp +++ b/SyncThread.cpp @@ -48,8 +48,8 @@ void SyncThread::run() { qDebug() << "Different file"; QFile file(path); - //是否可写 - if (!file.open(QIODevice::ReadWrite)) + //是否可读 + if (!file.open(QIODevice::ReadOnly)) { break; }