Skip to content

Commit 65f5dd4

Browse files
committed
Merge remote-tracking branch 'upstream/master'
2 parents 72736b1 + 9ee4c5a commit 65f5dd4

File tree

5 files changed

+22
-9
lines changed

5 files changed

+22
-9
lines changed

src/modinfodialogimages.cpp

Lines changed: 4 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -76,7 +76,10 @@ ImagesTab::ImagesTab(ModInfoDialogTabContext cx)
7676
ui->imagesShowDDS->setEnabled(m_ddsAvailable);
7777

7878
ui->imagesThumbnails->setAutoFillBackground(false);
79-
ui->imagesThumbnails->setAttribute(Qt::WA_OpaquePaintEvent, true);
79+
80+
if (ui->imagesThumbnails->palette().color(QPalette::Base) != Qt::transparent) {
81+
ui->imagesThumbnails->setAttribute(Qt::WA_OpaquePaintEvent, true);
82+
}
8083

8184
{
8285
auto list = std::make_unique<QListWidget>();

src/pluginlist.cpp

Lines changed: 11 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -210,6 +210,9 @@ void PluginList::refresh(const QString& profileName,
210210
bool forceDisabled =
211211
m_GamePlugin->loadOrderMechanism() == IPluginGame::LoadOrderMechanism::None &&
212212
!forceLoaded && !forceEnabled;
213+
if (!lightPluginsAreSupported && filename.endsWith(".esl")) {
214+
forceDisabled = true;
215+
}
213216

214217
bool archive = false;
215218
try {
@@ -1355,8 +1358,13 @@ QVariant PluginList::tooltipData(const QModelIndex& modelIndex) const
13551358
}
13561359

13571360
if (esp.forceDisabled) {
1358-
toolTip += "<br><br>" + tr("This game does not currently permit custom plugin "
1359-
"loading. There may be manual workarounds.");
1361+
if (m_GamePlugin->feature<GamePlugins>() && esp.hasLightExtension &&
1362+
!m_GamePlugin->feature<GamePlugins>()->lightPluginsAreSupported()) {
1363+
toolTip += "<br><br>" + tr("Light plugins (ESL) are not supported by this game.");
1364+
} else {
1365+
toolTip += "<br><br>" + tr("This game does not currently permit custom plugin "
1366+
"loading. There may be manual workarounds.");
1367+
}
13601368
}
13611369

13621370
// additional info
@@ -1804,7 +1812,7 @@ PluginList::ESPInfo::ESPInfo(const QString& name, bool forceLoaded, bool forceEn
18041812
ESP::File file(ToWString(fullPath));
18051813
auto extension = name.right(3).toLower();
18061814
hasMasterExtension = (extension == "esm");
1807-
hasLightExtension = lightSupported && (extension == "esl");
1815+
hasLightExtension = (extension == "esl");
18081816
isMasterFlagged = file.isMaster();
18091817
isOverlayFlagged = overlaySupported && file.isOverlay();
18101818
isLightFlagged =

src/problemsdialog.cpp

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -56,7 +56,6 @@ void ProblemsDialog::runDiagnosis()
5656
m_hasProblems = true;
5757

5858
if (diagnose->hasGuidedFix(key)) {
59-
newItem->setText(1, tr("Fix"));
6059
QPushButton* fixButton = new QPushButton(tr("Fix"));
6160
fixButton->setProperty("fix",
6261
QVariant::fromValue(reinterpret_cast<void*>(diagnose)));

src/settingsdialog.ui

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -2216,7 +2216,7 @@ For the other games this is not a sufficient replacement for AI!</string>
22162216
<item>
22172217
<widget class="LinkLabel" name="diagnosticsExplainedLabel">
22182218
<property name="toolTip">
2219-
<string>Hint: right click link and copy link location</string>
2219+
<string>Click a link to open the location</string>
22202220
</property>
22212221
<property name="text">
22222222
<string>

src/settingsdialogdiagnostics.cpp

Lines changed: 6 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -15,15 +15,18 @@ DiagnosticsSettingsTab::DiagnosticsSettingsTab(Settings& s, SettingsDialog& d)
1515

1616
ui->dumpsMaxEdit->setValue(settings().diagnostics().maxCoreDumps());
1717

18-
QString logsPath = qApp->property("dataPath").toString() + "/" +
19-
QString::fromStdWString(AppConfig::logPath());
18+
QString logsPath = QUrl::fromLocalFile(qApp->property("dataPath").toString() + "/" +
19+
QString::fromStdWString(AppConfig::logPath()))
20+
.toString();
2021

2122
ui->diagnosticsExplainedLabel->setText(
2223
ui->diagnosticsExplainedLabel->text()
2324
.replace("LOGS_FULL_PATH", logsPath)
2425
.replace("LOGS_DIR", QString::fromStdWString(AppConfig::logPath()))
2526
.replace("DUMPS_FULL_PATH",
26-
QString::fromStdWString(OrganizerCore::getGlobalCoreDumpPath()))
27+
QUrl::fromLocalFile(
28+
QString::fromStdWString(OrganizerCore::getGlobalCoreDumpPath()))
29+
.toString())
2730
.replace("DUMPS_DIR", QString::fromStdWString(AppConfig::dumpsDir())));
2831
}
2932

0 commit comments

Comments
 (0)