From f695fb115e898ee1c4068b8b5a0d1a74d4d08196 Mon Sep 17 00:00:00 2001 From: Eugene Lishnevsky Date: Thu, 19 Jul 2012 21:05:30 +0000 Subject: Fix: Dialog wouldn't appear when left-clicking status message in MyDetails. git-svn-id: http://svn.miranda-ng.org/main/trunk@1056 1316c22d-e87f-b044-9b9b-93d7a3e3ba9c --- plugins/MyDetails/data.cpp | 2 +- plugins/MyDetails/mydetails.cpp | 9 +++++---- 2 files changed, 6 insertions(+), 5 deletions(-) (limited to 'plugins') diff --git a/plugins/MyDetails/data.cpp b/plugins/MyDetails/data.cpp index 9452f9f5e4..e04105a7d9 100644 --- a/plugins/MyDetails/data.cpp +++ b/plugins/MyDetails/data.cpp @@ -325,7 +325,7 @@ void Protocol::SetStatusMsg(int aStatus, const TCHAR *message) if ( !CanSetStatusMsg(aStatus)) return; - CallProtoService(name, PS_SETAWAYMSG, (WPARAM)aStatus, (LPARAM)message); + CallProtoService(name, PS_SETAWAYMSGT, (WPARAM)aStatus, (LPARAM)message); } bool Protocol::HasAvatar() diff --git a/plugins/MyDetails/mydetails.cpp b/plugins/MyDetails/mydetails.cpp index 2e6e87089b..feb39c6e18 100644 --- a/plugins/MyDetails/mydetails.cpp +++ b/plugins/MyDetails/mydetails.cpp @@ -676,11 +676,11 @@ static int PluginCommand_SetMyStatusMessageUI(WPARAM wParam,LPARAM lParam) } } - if (proto_num == -1) + if (proto_num == -1) { return -1; + } - if (protocols->CanSetStatusMsgPerProtocol() && !proto->CanSetStatusMsg()) - { + if (protocols->CanSetStatusMsgPerProtocol() && !proto->CanSetStatusMsg()) { return -2; } } @@ -701,7 +701,8 @@ static int PluginCommand_SetMyStatusMessageUI(WPARAM wParam,LPARAM lParam) return 0; } - else if (proto == NULL || proto->status != ID_STATUS_OFFLINE) + + if (proto == NULL || proto->status != ID_STATUS_OFFLINE) { if ( !status_msg_dialog_open) { -- cgit v1.2.3