summaryrefslogtreecommitdiff
path: root/protocols/Skype/src
diff options
context:
space:
mode:
authorRobert Pösel <robyer@seznam.cz>2013-04-10 07:00:08 +0000
committerRobert Pösel <robyer@seznam.cz>2013-04-10 07:00:08 +0000
commit2db0f15d4e99fc869402268195fdf63d6131b34f (patch)
tree3b05859356db9463949244cf12f3e81d89131e86 /protocols/Skype/src
parent3dc0d9b0b7c30ea2f77d74c4ce5b6ccd67bd525c (diff)
Skype options fixes
git-svn-id: http://svn.miranda-ng.org/main/trunk@4405 1316c22d-e87f-b044-9b9b-93d7a3e3ba9c
Diffstat (limited to 'protocols/Skype/src')
-rw-r--r--protocols/Skype/src/skype_dialogs.cpp8
-rw-r--r--protocols/Skype/src/skype_proto.h38
2 files changed, 23 insertions, 23 deletions
diff --git a/protocols/Skype/src/skype_dialogs.cpp b/protocols/Skype/src/skype_dialogs.cpp
index 3869441fc9..f6b6740ff7 100644
--- a/protocols/Skype/src/skype_dialogs.cpp
+++ b/protocols/Skype/src/skype_dialogs.cpp
@@ -44,11 +44,11 @@ INT_PTR CALLBACK CSkypeProto::SkypeMainOptionsProc(HWND hwnd, UINT message, WPAR
SendMessage(GetDlgItem(hwnd, IDC_SL), EM_SETREADONLY, 1, 0);
SendMessage(GetDlgItem(hwnd, IDC_PW), EM_SETREADONLY, 1, 0);
SendMessage(GetDlgItem(hwnd, IDC_PORT), EM_SETREADONLY, 1, 0);
- SendMessage(GetDlgItem(hwnd, IDC_USE_ALT_PORTS), EM_SETREADONLY, 1, 0);
+ EnableWindow(GetDlgItem(hwnd, IDC_USE_ALT_PORTS), FALSE);
EnableWindow(GetDlgItem(hwnd, IDC_REGISTER), FALSE);
EnableWindow(GetDlgItem(hwnd, IDC_CHANGE_PWD), TRUE);
}
- else if (proto->GetSettingWord("Status") > 0)
+ else if (proto->GetSettingWord("Status") > ID_STATUS_OFFLINE)
{
EnableWindow(GetDlgItem(hwnd, IDC_REGISTER), FALSE);
}
@@ -63,7 +63,7 @@ INT_PTR CALLBACK CSkypeProto::SkypeMainOptionsProc(HWND hwnd, UINT message, WPAR
{
if ((HIWORD(wParam) != EN_CHANGE || (HWND)lParam != GetFocus())) return 0;
- if ( !proto->IsOnline() && proto->GetSettingWord("Status") == 0)
+ if (!proto->IsOnline() && proto->GetSettingWord("Status") <= ID_STATUS_OFFLINE)
{
char sid[128];
GetDlgItemTextA(hwnd, IDC_SL, sid, SIZEOF(sid));
@@ -151,7 +151,7 @@ INT_PTR CALLBACK CSkypeProto::SkypeMainOptionsProc(HWND hwnd, UINT message, WPAR
BOOL error;
int port = GetDlgItemInt(hwnd, IDC_PORT, &error, FALSE);
proto->SetSettingWord("Port", port);
- proto->SetSettingByte("UseAlternativePorts", IsDlgButtonChecked(hwnd, IDC_USE_ALT_PORTS) > 0);
+ proto->SetSettingByte("UseAlternativePorts", (BYTE)IsDlgButtonChecked(hwnd, IDC_USE_ALT_PORTS));
}
return TRUE;
diff --git a/protocols/Skype/src/skype_proto.h b/protocols/Skype/src/skype_proto.h
index 5e38e73c2a..7ac8b89ff0 100644
--- a/protocols/Skype/src/skype_proto.h
+++ b/protocols/Skype/src/skype_proto.h
@@ -180,25 +180,25 @@ struct PasswordChangeBoxParam
}
};
-struct FileTransfer
-{
- CSkypeProto* ppro;
- SEBinary guid;
- CTransfer::Refs transfers;
- //char *who;
- //char *msg;
- //char *ftoken;
- //char *relay;
- //HANDLE hContact;
- //int cancel;
- //char *url;
- //HANDLE hWaitEvent;
- //DWORD action;
- //int y7;
- ////YList *files;
- //PROTOFILETRANSFERSTATUS pfts;
-
- FileTransfer(CSkypeProto* ppro) { this->ppro = ppro; }
+struct FileTransfer
+{
+ CSkypeProto* ppro;
+ SEBinary guid;
+ CTransfer::Refs transfers;
+ //char *who;
+ //char *msg;
+ //char *ftoken;
+ //char *relay;
+ //HANDLE hContact;
+ //int cancel;
+ //char *url;
+ //HANDLE hWaitEvent;
+ //DWORD action;
+ //int y7;
+ ////YList *files;
+ //PROTOFILETRANSFERSTATUS pfts;
+
+ FileTransfer(CSkypeProto* ppro) { this->ppro = ppro; }
};
struct CSkypeProto : public PROTO_INTERFACE