diff options
author | George Hazan <george.hazan@gmail.com> | 2024-05-19 18:52:51 +0300 |
---|---|---|
committer | George Hazan <george.hazan@gmail.com> | 2024-05-19 18:52:51 +0300 |
commit | 4da01b6a9e9cfcf7f5d7f2103b866b7ddf7e37c1 (patch) | |
tree | 6cf96e57d95427f3e0bc700432d40d9474e940df /src/mir_app | |
parent | 0725135de888034c2cbf499c215f37c40edd602d (diff) |
Clist_GroupDelete: bool bSilent parameter added not to ask stupid questions
Diffstat (limited to 'src/mir_app')
-rw-r--r-- | src/mir_app/src/clistgroups.cpp | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/src/mir_app/src/clistgroups.cpp b/src/mir_app/src/clistgroups.cpp index f4cb7f43ac..52d331fa16 100644 --- a/src/mir_app/src/clistgroups.cpp +++ b/src/mir_app/src/clistgroups.cpp @@ -204,14 +204,14 @@ static bool isParentOf(const CMStringW &pParent, const wchar_t *p) }
}
-MIR_APP_DLL(int) Clist_GroupDelete(MGROUP hGroup)
+MIR_APP_DLL(int) Clist_GroupDelete(MGROUP hGroup, bool bSilent)
{
// get the name
CGroupInternal *pGroup = FindGroup(hGroup-1);
if (pGroup == nullptr)
return 1;
- if (Clist::ConfirmDelete) {
+ if (!bSilent && Clist::ConfirmDelete) {
wchar_t szQuestion[256 + 100];
mir_snwprintf(szQuestion, TranslateT("Are you sure you want to delete group '%s'? This operation cannot be undone."), pGroup->groupName);
if (MessageBoxW(g_clistApi.hwndContactList, szQuestion, TranslateT("Delete group"), MB_YESNO | MB_ICONQUESTION) == IDNO)
|