summaryrefslogtreecommitdiff
path: root/src
diff options
context:
space:
mode:
Diffstat (limited to 'src')
-rw-r--r--src/modules/database/profilemanager.cpp4
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;
}