diff options
| author | Jeremy Rimpo <jrim@rimpo.org> | 2018-03-23 11:56:23 -0500 |
|---|---|---|
| committer | Jeremy Rimpo <jrim@rimpo.org> | 2018-03-23 11:56:23 -0500 |
| commit | 92e3fa2fdd026811d646fa4126551616a468302e (patch) | |
| tree | 4b4686e71941892d5c6c0e87a6f6a228e99474f1 /src/mainwindow.cpp | |
| parent | 5a98d69dcdf470308823b8648367c2f13b52c593 (diff) | |
| parent | 5dd0e3b77e204cc32c365f139224bd996126987a (diff) | |
Merge branch 'Develop' of https://github.com/Modorganizer2/modorganizer into Develop
Diffstat (limited to 'src/mainwindow.cpp')
| -rw-r--r-- | src/mainwindow.cpp | 4 |
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 {
|
