diff options
author | George Hazan <george.hazan@gmail.com> | 2015-05-23 19:49:48 +0000 |
---|---|---|
committer | George Hazan <george.hazan@gmail.com> | 2015-05-23 19:49:48 +0000 |
commit | 071328ca9151cdafb12e00e817c4fe559b3c8220 (patch) | |
tree | 6532ac8f6b5193ae3093276272da9f81743a26f6 | |
parent | 9b45dbb35a3fb8a9885b72da231bf03671979d86 (diff) |
Profile manager:
- fixed profile sorting;
- fixed run on dblclick
git-svn-id: http://svn.miranda-ng.org/main/trunk@13793 1316c22d-e87f-b044-9b9b-93d7a3e3ba9c
-rw-r--r-- | src/modules/database/profilemanager.cpp | 4 | ||||
-rw-r--r-- | src/resource.rc | 2 |
2 files changed, 3 insertions, 3 deletions
diff --git a/src/modules/database/profilemanager.cpp b/src/modules/database/profilemanager.cpp index b7e0d5ee7e..0546d0a286 100644 --- a/src/modules/database/profilemanager.cpp +++ b/src/modules/database/profilemanager.cpp @@ -383,7 +383,7 @@ class CChooseProfileDlg : public CDlgBase _tcsncpy_s(m_pd->ptszProfile, MAX_PATH, tmpPath, _TRUNCATE); if (uMsg == NM_DBLCLK) - EndDialog(GetParent(m_hwnd), 1); + EndDialog(GetParent(m_hwndParent), 1); } void ExecuteMenu(LPARAM lParam) @@ -426,7 +426,7 @@ class CChooseProfileDlg : public CDlgBase int index = TrackPopupMenu(hMenu, TPM_RETURNCMD, lvht.pt.x, lvht.pt.y, 0, m_hwnd, NULL); switch (index) { case 1: - SendMessage(GetParent(m_hwnd), WM_COMMAND, IDOK, 0); + SendMessage(GetParent(m_hwndParent), WM_COMMAND, IDOK, 0); break; case 2: diff --git a/src/resource.rc b/src/resource.rc index 31ab3dab7b..68db7557f6 100644 --- a/src/resource.rc +++ b/src/resource.rc @@ -391,7 +391,7 @@ STYLE DS_SETFONT | DS_FIXEDSYS | WS_CHILD | DS_CONTROL EXSTYLE WS_EX_CONTROLPARENT
FONT 8, "MS Shell Dlg", 0, 0, 0x1
BEGIN
- CONTROL "List1",IDC_PROFILELIST,"SysListView32",LVS_REPORT | LVS_SINGLESEL | LVS_SHOWSELALWAYS | LVS_NOSORTHEADER | WS_BORDER | WS_TABSTOP,0,3,207,117
+ CONTROL "List1",IDC_PROFILELIST,"SysListView32",LVS_REPORT | LVS_SINGLESEL | LVS_SORTASCENDING | LVS_SHOWSELALWAYS | LVS_NOSORTHEADER | WS_BORDER | WS_TABSTOP,0,3,207,117
END
IDD_PROFILE_NEW DIALOGEX 0, 0, 208, 122
|