diff options
author | Tobias Weimer <wishmaster51@googlemail.com> | 2013-10-16 19:22:08 +0000 |
---|---|---|
committer | Tobias Weimer <wishmaster51@googlemail.com> | 2013-10-16 19:22:08 +0000 |
commit | 91fa6bc328504434af071b199db16466e93bba0e (patch) | |
tree | c933680e0aecf0e8a9bb4cb641fe8770a6daabcc /plugins/WebView/src | |
parent | 3c610aabf102b6cd5eebe613e73f2aa7037b7ab4 (diff) |
fixed double click action in contact list
git-svn-id: http://svn.miranda-ng.org/main/trunk@6510 1316c22d-e87f-b044-9b9b-93d7a3e3ba9c
Diffstat (limited to 'plugins/WebView/src')
-rw-r--r-- | plugins/WebView/src/webview.cpp | 6 |
1 files changed, 3 insertions, 3 deletions
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);
|