From 968cc4b4956e63643116485866ecbe60b4cee22c Mon Sep 17 00:00:00 2001 From: LostDragonist Date: Mon, 18 Mar 2019 13:53:30 -0500 Subject: Allow moving overwrite files to mods to replace files --- src/modlist.cpp | 8 +------- 1 file changed, 1 insertion(+), 7 deletions(-) (limited to 'src/modlist.cpp') 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(relativePath, originName); -- cgit v1.3.1