summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorAl <gabriel.cortesi@outlook.com>2018-03-23 15:12:49 +0100
committerGitHub <noreply@github.com>2018-03-23 15:12:49 +0100
commit4baba035dd51553c7e15bdc8e18ee2bf9eeb6877 (patch)
tree0f28f18308087c6eea3410828430656bcbe4fa67
parentdd288fe1527b6db8c56236ac365b43880d86ab88 (diff)
parent82d4742e2814755a4aa812fadb382b2831680692 (diff)
Merge pull request #286 from SuperSandro2000/fix-ocd
Proper variable naming
-rw-r--r--src/mainwindow.cpp4
1 files changed, 2 insertions, 2 deletions
diff --git a/src/mainwindow.cpp b/src/mainwindow.cpp
index a79e42ba..0dbe4d53 100644
--- a/src/mainwindow.cpp
+++ b/src/mainwindow.cpp
@@ -3938,9 +3938,9 @@ void MainWindow::previewDataFile()
// check if the file comes from the actual data folder instead of a mod
QDir gameDirectory = m_OrganizerCore.managedGame()->dataDirectory().absolutePath();
QString relativePath = gameDirectory.relativeFilePath(fileName);
- QDir direRelativePath = gameDirectory.relativeFilePath(fileName);
+ QDir dirRelativePath = gameDirectory.relativeFilePath(fileName);
// if the file is on a different drive the dirRelativePath will actually be an absolute path so we make sure that is not the case
- if (!direRelativePath.isAbsolute() && !relativePath.startsWith("..")) {
+ if (!dirRelativePath.isAbsolute() && !relativePath.startsWith("..")) {
fileName = relativePath;
}
else {