diff options
author | George Hazan <george.hazan@gmail.com> | 2014-07-21 12:30:03 +0000 |
---|---|---|
committer | George Hazan <george.hazan@gmail.com> | 2014-07-21 12:30:03 +0000 |
commit | 7f47f494c96d2c7a549edb4b757b1667552f046b (patch) | |
tree | d92830a1e956a4537353946f559fcb7e2a6ab0ec | |
parent | c531656b4ba8efe76501cfe5efe98059c01aaa49 (diff) |
profile creation fix
git-svn-id: http://svn.miranda-ng.org/main/trunk@9901 1316c22d-e87f-b044-9b9b-93d7a3e3ba9c
-rw-r--r-- | src/modules/database/profilemanager.cpp | 4 |
1 files changed, 3 insertions, 1 deletions
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;
}
|