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; }