diff options
| author | LostDragonist <lost.dragonist@gmail.com> | 2019-03-18 13:53:30 -0500 |
|---|---|---|
| committer | LostDragonist <lost.dragonist@gmail.com> | 2019-03-18 13:53:30 -0500 |
| commit | 968cc4b4956e63643116485866ecbe60b4cee22c (patch) | |
| tree | 1c37a8b98b006b7fa7678abe0397e3c6cf919c83 /src/modlist.cpp | |
| parent | be93ce069055d66797125f2c764902eb1ab48fe2 (diff) | |
Allow moving overwrite files to mods to replace files
Diffstat (limited to 'src/modlist.cpp')
| -rw-r--r-- | src/modlist.cpp | 8 |
1 files changed, 1 insertions, 7 deletions
diff --git a/src/modlist.cpp b/src/modlist.cpp index de064468..3247b1e8 100644 --- a/src/modlist.cpp +++ b/src/modlist.cpp @@ -1027,7 +1027,7 @@ bool ModList::dropURLs(const QMimeData *mimeData, int row, const QModelIndex &pa QStringList splitPath = relativeDir.path().split("/"); originName = splitPath[0]; splitPath.pop_front(); - relativePath = splitPath.join("/"); + relativePath = splitPath.join("/"); } else if (sourceFile.startsWith(overwriteDir.canonicalPath())) { originName = overwriteName; relativePath = overwriteDir.relativeFilePath(sourceFile); @@ -1037,12 +1037,6 @@ bool ModList::dropURLs(const QMimeData *mimeData, int row, const QModelIndex &pa } QFileInfo targetInfo(modDir.absoluteFilePath(sourceInfo.fileName())); - if (targetInfo.exists()) { - qDebug("URL drop ignored: \"%s\" already exists in origin \"%s\"", - qUtf8Printable(relativePath), qUtf8Printable(modInfo->name())); - continue; - } - sourceList << sourceFile; targetList << targetInfo.absoluteFilePath(); relativePathList << QPair<QString,QString>(relativePath, originName); |
