diff options
author | George Hazan <ghazan@miranda.im> | 2022-03-28 20:22:07 +0300 |
---|---|---|
committer | George Hazan <ghazan@miranda.im> | 2022-03-28 20:22:07 +0300 |
commit | 6ca816aec75f4a724757d76c04c443962b23eee4 (patch) | |
tree | 8bdf28187fc21845b2460d69e3bd130964b6bedc | |
parent | a02f00c8a23188127850afb6e4042d52d5610a59 (diff) |
fixes #3048 (wrong flag is written to db if std plugin could not be loaded)
-rw-r--r-- | src/mir_app/src/pluginopts.cpp | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/src/mir_app/src/pluginopts.cpp b/src/mir_app/src/pluginopts.cpp index 4f7160d2be..9e604033aa 100644 --- a/src/mir_app/src/pluginopts.cpp +++ b/src/mir_app/src/pluginopts.cpp @@ -369,9 +369,8 @@ public: for (int iRow = 0; iRow != -1;) {
wchar_t buf[1024];
m_plugList.GetItemText(iRow, 0, buf, _countof(buf));
- int iState = m_plugList.GetItemState(iRow, LVIS_STATEIMAGEMASK);
- SetPluginOnWhiteList(_T2A(buf), (iState & 0x2000) != 0);
+ int iState = m_plugList.GetItemState(iRow, LVIS_STATEIMAGEMASK);
if (iState != 0x3000) {
LVITEM lvi = { 0 };
lvi.mask = LVIF_IMAGE | LVIF_PARAM;
@@ -396,7 +395,7 @@ public: if (dat->bWasLoaded) {
if (!dat->bRequiresRestart) {
if (!UnloadPluginDynamically(dat))
- m_plugList.SetItemState(iRow, 0x2000, LVIS_STATEIMAGEMASK);
+ m_plugList.SetItemState(iRow, iState = 0x2000, LVIS_STATEIMAGEMASK);
}
else {
bufRestart.AppendFormat(L" - %s\n", buf);
@@ -406,6 +405,7 @@ public: }
}
}
+ SetPluginOnWhiteList(_T2A(buf), (iState & 0x2000) != 0);
iRow = m_plugList.GetNextItem(iRow, LVNI_ALL);
}
|