mirror of
https://github.com/nextcloud/desktop.git
synced 2024-11-28 02:20:24 +03:00
Fix a bug where if the local directory specified does not exist, create
it.
This commit is contained in:
parent
cfa98f9f88
commit
b171f33e59
1 changed files with 6 additions and 1 deletions
|
@ -1322,8 +1322,13 @@ void OwnCloudSync::initialize(QString host, QString user, QString pass,
|
|||
mWebdav->initialize(mHost+"/files/webdav.php",
|
||||
mUsername,mPassword,"/files/webdav.php");
|
||||
|
||||
// Create a File System Watcher
|
||||
// Create the local directory if it doesn't exist
|
||||
QDir localDir(mLocalDirectory);
|
||||
if(!localDir.exists()) {
|
||||
localDir.mkpath(mLocalDirectory);
|
||||
}
|
||||
|
||||
// Create a File System Watcher
|
||||
delete mFileWatcher;
|
||||
mFileWatcher = new QFileSystemWatcher(this);
|
||||
connect(mFileWatcher,SIGNAL(fileChanged(QString)),
|
||||
|
|
Loading…
Reference in a new issue