summaryrefslogtreecommitdiff
path: root/src/modinfodialog.cpp
diff options
context:
space:
mode:
authorisanae <14251494+isanae@users.noreply.github.com>2019-05-28 10:53:55 -0400
committerisanae <14251494+isanae@users.noreply.github.com>2019-05-28 10:53:55 -0400
commitee92fa9fc89ab047a63716c48e13d3d0a76af4fb (patch)
treea51b669d08e3652b2b3a5286d10d3b73d1b4cf68 /src/modinfodialog.cpp
parentd3c244c83427174f80d59d3ebbafd2c4263f9b4f (diff)
reverted change that showed the conflicted file first in the preview dialog
I'm not sure how I got to the conclusion that this was a better idea: preview was always an option for those files, and it has always shown the winning file, so I changed some long-standing behaviour for no reason. I reverted that change, although I'm leaving the functionality in previewFileWithAlternatives() to specify the selected origin because it works and could be useful in the future
Diffstat (limited to 'src/modinfodialog.cpp')
-rw-r--r--src/modinfodialog.cpp4
1 files changed, 1 insertions, 3 deletions
diff --git a/src/modinfodialog.cpp b/src/modinfodialog.cpp
index 06c065fe..b6a21705 100644
--- a/src/modinfodialog.cpp
+++ b/src/modinfodialog.cpp
@@ -1743,10 +1743,8 @@ void ModInfoDialog::previewDataFile(const QTreeWidgetItem* item)
return;
}
- const int originId = (m_Origin ? m_Origin->getID() : -1);
-
QString fileName = QDir::fromNativeSeparators(item->data(0, Qt::UserRole).toString());
- m_OrganizerCore->previewFileWithAlternatives(this, fileName, originId);
+ m_OrganizerCore->previewFileWithAlternatives(this, fileName);
}
bool ModInfoDialog::canPreviewFile(bool isArchive, const QString& filename) const