summaryrefslogtreecommitdiff
path: root/src
diff options
context:
space:
mode:
authorSandro Jäckel <sandro.jaeckel@gmail.com>2018-03-21 08:23:03 +0100
committerGitHub <noreply@github.com>2018-03-21 08:23:03 +0100
commit82d4742e2814755a4aa812fadb382b2831680692 (patch)
tree9d17e758a6919d7f2f66716e6a50d900874cca7f /src
parent3cceb6502ced53e17ef804856bd516e8537b0f46 (diff)
Proper variable naming
and fixed Sandros OCD
Diffstat (limited to 'src')
-rw-r--r--src/mainwindow.cpp4
1 files changed, 2 insertions, 2 deletions
diff --git a/src/mainwindow.cpp b/src/mainwindow.cpp
index e5eacc41..cae5ee52 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 {