diff options
| author | Al12rs <gabriel.cortesi@outlook.com> | 2018-09-10 05:58:24 -0500 |
|---|---|---|
| committer | LostDragonist <lost.dragonist@gmail.com> | 2018-12-12 20:17:07 -0600 |
| commit | 40c82fc1908a8ca53abeeabdc618e81e941c987c (patch) | |
| tree | 0693cd02ab8de8fd1c29f8463589001032d59800 /src/directoryrefresher.cpp | |
| parent | 57178f898838afed6e7a50413899d6082aad9989 (diff) | |
Fixed mainwindow.cpp so that Qt Creator does not break it anymore.
We should be able to normally use Creator now without having to worry about breaking the build.
Partial fix for conflict information getting messd up after opening infodialog or disabling a mod.
Icons still get messed up but conflict tab remains consistent at first inspection.
Reverted main tab to plugins
Changed version of Archive conflicts branch to 2.2.0 pre-alpha.
Diffstat (limited to 'src/directoryrefresher.cpp')
| -rw-r--r-- | src/directoryrefresher.cpp | 12 |
1 files changed, 6 insertions, 6 deletions
diff --git a/src/directoryrefresher.cpp b/src/directoryrefresher.cpp index 5c789049..82eb093b 100644 --- a/src/directoryrefresher.cpp +++ b/src/directoryrefresher.cpp @@ -85,17 +85,17 @@ void DirectoryRefresher::addModBSAToStructure(DirectoryEntry *directoryStructure int priority, const QString &directory, const QStringList &archives)
{
std::wstring directoryW = ToWString(QDir::toNativeSeparators(directory));
+ //QStringList loadOrder = QStringList();
+ IPluginGame *game = qApp->property("managed_game").value<IPluginGame*>();
+
+ GamePlugins *gamePlugins = game->feature<GamePlugins>();
QStringList loadOrder = QStringList();
+ gamePlugins->getLoadOrder(loadOrder);
for (const QString &archive : archives) {
QFileInfo fileInfo(archive);
if (m_EnabledArchives.find(fileInfo.fileName()) != m_EnabledArchives.end()) {
- IPluginGame *game = qApp->property("managed_game").value<IPluginGame*>();
-
- GamePlugins *gamePlugins = game->feature<GamePlugins>();
- QStringList loadOrder = QStringList();
- gamePlugins->getLoadOrder(loadOrder);
-
+
int order = -1;
for (auto plugin : loadOrder)
|
