summaryrefslogtreecommitdiff
path: root/src/mir_app
diff options
context:
space:
mode:
authorGeorge Hazan <ghazan@miranda.im>2022-09-13 04:51:29 -0700
committerGeorge Hazan <ghazan@miranda.im>2022-09-13 04:51:29 -0700
commite6ce4f4bca8ea41e5a75d252d8ccf8d7d2e17841 (patch)
tree79aae3b63b70ef74aad19930af263daa45df45d3 /src/mir_app
parentdf5f0921ccc21b76e17b70e5e55b92ae96a4ab31 (diff)
fixes #3193 (Добавить сообщение, поясняющее, что доступ к настройкам отключён)
Diffstat (limited to 'src/mir_app')
-rw-r--r--src/mir_app/src/options.cpp10
1 files changed, 7 insertions, 3 deletions
diff --git a/src/mir_app/src/options.cpp b/src/mir_app/src/options.cpp
index d63e02ee10..ea7f32ac99 100644
--- a/src/mir_app/src/options.cpp
+++ b/src/mir_app/src/options.cpp
@@ -198,8 +198,8 @@ struct OptionsPageData : public MZeroedObject
CMPluginBase *p = (CMPluginBase*)src.pPlugin;
pDialog = new COptionPageDialog(*p, (INT_PTR)src.pszTemplate, src.pfnDlgProc, src.dwInitParam);
}
- else
- pDialog = src.pDialog;
+ else pDialog = src.pDialog;
+
assert(pDialog != nullptr);
flags = src.flags;
@@ -1170,8 +1170,12 @@ void OpenAccountOptions(PROTOACCOUNT *pa)
static void OpenOptionsNow(HPLUGIN pPlugin, const wchar_t *pszGroup, const wchar_t *pszPage, const wchar_t *pszTab, bool bSinglePage)
{
// Hidden setting
- if (!db_get_b(0, "Options", "Enable", true))
+ if (!db_get_b(0, "Options", "Enable", true)) {
+ MessageBoxW(0,
+ TranslateT("Options dialog is disabled by the system administrator. Contact him if you need to edit options"),
+ L"Miranda NG", MB_ICONEXCLAMATION);
return;
+ }
if (pOptionsDlg == nullptr) {
OptionsPageList arPages(1);