Merge pull request #2277 from Scrxtchy/remux-separators

UI: Convert remux path separators to OS native style
master
Jim 2019-12-29 19:42:55 -08:00 committed by GitHub
commit 95faa461ba
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
1 changed files with 4 additions and 2 deletions

View File

@ -461,6 +461,7 @@ void RemuxQueueModel::checkInputPath(int row)
if (entry.sourcePath.isEmpty()) {
entry.state = RemuxEntryState::Empty;
} else {
entry.sourcePath = QDir::toNativeSeparators(entry.sourcePath);
QFileInfo fileInfo(entry.sourcePath);
if (fileInfo.exists())
entry.state = RemuxEntryState::Ready;
@ -468,8 +469,9 @@ void RemuxQueueModel::checkInputPath(int row)
entry.state = RemuxEntryState::InvalidPath;
if (entry.state == RemuxEntryState::Ready)
entry.targetPath = fileInfo.path() + QDir::separator() +
fileInfo.completeBaseName() + ".mp4";
entry.targetPath = QDir::toNativeSeparators(
fileInfo.path() + QDir::separator() +
fileInfo.completeBaseName() + ".mp4");
}
if (entry.state == RemuxEntryState::Ready && isProcessing)