aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--libs/game_bethesda/src/games/fallout4vr/fallout4vrgameplugins.cpp2
-rw-r--r--src/src/modinforegular.cpp3
-rw-r--r--src/src/modlist.cpp3
-rw-r--r--src/src/pluginlistview.cpp2
-rw-r--r--src/src/profile.cpp8
5 files changed, 12 insertions, 6 deletions
diff --git a/libs/game_bethesda/src/games/fallout4vr/fallout4vrgameplugins.cpp b/libs/game_bethesda/src/games/fallout4vr/fallout4vrgameplugins.cpp
index e40a3ae..46536aa 100644
--- a/libs/game_bethesda/src/games/fallout4vr/fallout4vrgameplugins.cpp
+++ b/libs/game_bethesda/src/games/fallout4vr/fallout4vrgameplugins.cpp
@@ -8,7 +8,7 @@ Fallout4VRGamePlugins::Fallout4VRGamePlugins(MOBase::IOrganizer* organizer)
bool Fallout4VRGamePlugins::lightPluginsAreSupported()
{
- auto files = m_Organizer->findFiles("f4se\\plugins", {"falloutvresl.dll"});
+ auto files = m_Organizer->findFiles("f4se\\plugins", {"falloutvresl.dll", "Daytripper4.dll"});
if (files.isEmpty())
return false;
return true;
diff --git a/src/src/modinforegular.cpp b/src/src/modinforegular.cpp
index 562f3e5..4804ea0 100644
--- a/src/src/modinforegular.cpp
+++ b/src/src/modinforegular.cpp
@@ -773,6 +773,9 @@ QString ModInfoRegular::getDescription() const
.arg(name());
} else {
const std::set<int>& categories = getCategories();
+ if (categories.empty()) {
+ return QString();
+ }
std::wostringstream categoryString;
categoryString << ToWString(tr("Categories: <br>"));
CategoryFactory& categoryFactory = CategoryFactory::instance();
diff --git a/src/src/modlist.cpp b/src/src/modlist.cpp
index 35f4a94..def83e6 100644
--- a/src/src/modlist.cpp
+++ b/src/src/modlist.cpp
@@ -449,6 +449,9 @@ QVariant ModList::data(const QModelIndex& modelIndex, int role) const
return text;
} else if (column == COL_CATEGORY) {
const std::set<int>& categories = modInfo->getCategories();
+ if (categories.empty()) {
+ return QString();
+ }
std::wostringstream categoryString;
categoryString << ToWString(tr("Categories: <br>"));
CategoryFactory& categoryFactory = CategoryFactory::instance();
diff --git a/src/src/pluginlistview.cpp b/src/src/pluginlistview.cpp
index c6ed8b1..ffdae3d 100644
--- a/src/src/pluginlistview.cpp
+++ b/src/src/pluginlistview.cpp
@@ -216,7 +216,7 @@ void PluginListView::onSortButtonClicked()
m_didUpdateMasterList = true;
}
- m_core->refreshESPList(true);
+ m_core->refreshESPList(false);
m_core->savePluginList();
}
}
diff --git a/src/src/profile.cpp b/src/src/profile.cpp
index c0cf81a..5f96be7 100644
--- a/src/src/profile.cpp
+++ b/src/src/profile.cpp
@@ -929,9 +929,9 @@ bool Profile::enableLocalSaves(bool enable)
"games)"),
QDialogButtonBox::No | QDialogButtonBox::Yes | QDialogButtonBox::Cancel,
QDialogButtonBox::No);
- if (res == QDialogButtonBox::Yes) {
+ if (res == QMessageBox::Yes) {
shellDelete(QStringList(m_Directory.absoluteFilePath("saves")));
- } else if (res == QDialogButtonBox::No) {
+ } else if (res == QMessageBox::No) {
// No action
} else {
return false;
@@ -990,7 +990,7 @@ bool Profile::enableLocalSettings(bool enable)
QDialogButtonBox::No | QDialogButtonBox::Yes |
QDialogButtonBox::Cancel,
QDialogButtonBox::No);
- if (res == QDialogButtonBox::Yes) {
+ if (res == QMessageBox::Yes) {
QStringList filesToDelete;
for (QString file : m_GamePlugin->iniFiles()) {
QString resolved = MOBase::resolveFileCaseInsensitive(
@@ -998,7 +998,7 @@ bool Profile::enableLocalSettings(bool enable)
filesToDelete << resolved;
}
shellDelete(filesToDelete, true);
- } else if (res == QDialogButtonBox::No) {
+ } else if (res == QMessageBox::No) {
// No action
} else {
return false;