From 91fa6bc328504434af071b199db16466e93bba0e Mon Sep 17 00:00:00 2001 From: Tobias Weimer Date: Wed, 16 Oct 2013 19:22:08 +0000 Subject: fixed double click action in contact list git-svn-id: http://svn.miranda-ng.org/main/trunk@6510 1316c22d-e87f-b044-9b9b-93d7a3e3ba9c --- plugins/WebView/src/webview.cpp | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) (limited to 'plugins/WebView/src') diff --git a/plugins/WebView/src/webview.cpp b/plugins/WebView/src/webview.cpp index 19ac061690..b47f9a63d1 100644 --- a/plugins/WebView/src/webview.cpp +++ b/plugins/WebView/src/webview.cpp @@ -181,14 +181,14 @@ int Doubleclick(WPARAM wParam, LPARAM lParam) if ( lstrcmpA(MODULENAME, szProto)) return 0; - if ( db_get_b(hContact, MODULENAME, DBLE_WIN_KEY, 1)) { + int action = db_get_b(hContact, MODULENAME, DBLE_WIN_KEY, 1); + if (action == 0) { ptrT url( db_get_tsa(hContact, MODULENAME, "URL")); CallService(MS_UTILS_OPENURL, OUF_TCHAR, (WPARAM)url); db_set_w(hContact, MODULENAME, "Status", ID_STATUS_ONLINE); } - - if ( db_get_b(hContact, MODULENAME, DBLE_WIN_KEY, 1)) { + else if (action == 1) { HWND hwndDlg = WindowList_Find(hWindowList, hContact); if (hwndDlg) { SetForegroundWindow(hwndDlg); -- cgit v1.2.3