From 7f47f494c96d2c7a549edb4b757b1667552f046b Mon Sep 17 00:00:00 2001 From: George Hazan Date: Mon, 21 Jul 2014 12:30:03 +0000 Subject: profile creation fix git-svn-id: http://svn.miranda-ng.org/main/trunk@9901 1316c22d-e87f-b044-9b9b-93d7a3e3ba9c --- src/modules/database/profilemanager.cpp | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) (limited to 'src') diff --git a/src/modules/database/profilemanager.cpp b/src/modules/database/profilemanager.cpp index f48beb47a4..ec1ef88ee1 100644 --- a/src/modules/database/profilemanager.cpp +++ b/src/modules/database/profilemanager.cpp @@ -114,7 +114,7 @@ static int findProfiles(TCHAR *szProfileDir, ENUMPROFILECALLBACK callback, LPARA return 1; } -static int CreateProfile(TCHAR *profile, DATABASELINK * link, HWND hwndDlg) +static int CreateProfile(TCHAR *profile, DATABASELINK *link, HWND hwndDlg) { TCHAR buf[256]; int err = 0; @@ -251,6 +251,8 @@ static INT_PTR CALLBACK DlgProfileNew(HWND hwndDlg, UINT msg, WPARAM wParam, LPA if (CreateProfile(dat->pd->ptszProfile, dat->pd->dblink, hwndDlg) == 0) SetWindowLongPtr(hwndDlg, DWLP_MSGRESULT, PSNRET_INVALID_NOCHANGEPAGE); + else + dat->pd->bRun = true; } break; } -- cgit v1.2.3