diff options
Diffstat (limited to 'plugins/UserInfoEx')
-rw-r--r-- | plugins/UserInfoEx/src/dlg_propsheet.cpp | 31 | ||||
-rw-r--r-- | plugins/UserInfoEx/src/stdafx.h | 2 |
2 files changed, 4 insertions, 29 deletions
diff --git a/plugins/UserInfoEx/src/dlg_propsheet.cpp b/plugins/UserInfoEx/src/dlg_propsheet.cpp index 75bacd9cf0..60f544b937 100644 --- a/plugins/UserInfoEx/src/dlg_propsheet.cpp +++ b/plugins/UserInfoEx/src/dlg_propsheet.cpp @@ -124,21 +124,8 @@ private: TranslateT("You are not currently connected to the ICQ network.\nYou must be online in order to update your information on the server.\n\nYour changes will be saved to database only."));
// start uploading process
- else {
- _hUploading = (HANDLE)CallProtoService((*_pPd)->szModuleName, PS_CHANGEINFOEX, CIXT_FULL, NULL);
- if (_hUploading && _hUploading != (HANDLE)CALLSERVICE_NOTFOUND) {
- EnableWindow(_pPs->pTree->Window(), FALSE);
- if (CPsTreeItem *pti = _pPs->pTree->CurrentItem())
- EnableWindow(pti->Wnd(), FALSE);
-
- EnableWindow(GetDlgItem(_pPs->hDlg, IDOK), FALSE);
- EnableWindow(GetDlgItem(_pPs->hDlg, IDAPPLY), FALSE);
- mir_snprintf(_pPs->szUpdating, "%s (%s)", Translate("Uploading"), (*_pPd)->szModuleName);
- ShowWindow(GetDlgItem(_pPs->hDlg, TXT_UPDATING), SW_SHOW);
- SetTimer(_pPs->hDlg, TIMERID_UPDATING, 100, nullptr);
- return 0;
- }
- }
+ else _hUploading = 0;
+
return 1;
}
@@ -194,13 +181,6 @@ public: int UploadNext()
{
- while (_pPd && *_pPd && _numProto-- > 0) {
- if (ProtoServiceExists((*_pPd)->szModuleName, PS_CHANGEINFOEX) && !Upload()) {
- _pPd++;
- return UPLOAD_CONTINUE;
- }
- _pPd++;
- }
return _bExitAfterUploading ? UPLOAD_FINISH_CLOSE : UPLOAD_FINISH;
}
};
@@ -1426,12 +1406,7 @@ void DlgContactInfoLoadModule() g_hWindowList = WindowList_Create();
// check whether changing my details via UserInfoEx is basically possible
- myGlobals.CanChangeDetails = FALSE;
-
- for (auto &pa : Accounts())
- if (IsProtoAccountEnabled(pa)) // update my contact information on icq server
- if (myGlobals.CanChangeDetails = MIREXISTS(CallProtoService(pa->szModuleName, PS_CHANGEINFOEX, NULL, NULL)))
- break;
+ myGlobals.CanChangeDetails = false;
}
/////////////////////////////////////////////////////////////////////////////////////////
diff --git a/plugins/UserInfoEx/src/stdafx.h b/plugins/UserInfoEx/src/stdafx.h index e3e8f5e21d..7812332a92 100644 --- a/plugins/UserInfoEx/src/stdafx.h +++ b/plugins/UserInfoEx/src/stdafx.h @@ -60,9 +60,9 @@ using namespace std; #include <m_xml.h>
#include <m_timezones.h>
#include <m_imgsrvc.h>
+#include <m_protosvc.h>
#include <m_message.h>
#include <m_userinfo.h>
-#include <m_icq.h>
#include <m_email.h>
#include <win2k.h>
#include <msapi/vsstyle.h>
|