From aa4bd180f90414716025391d5e3aa8a5512dc071 Mon Sep 17 00:00:00 2001 From: Tobias Weimer Date: Tue, 29 Jan 2013 20:15:33 +0000 Subject: ability to restart with the default profile (instead of the actual one) by setting "RestartCurrentProfile" (1 = use current profile, 0 = use default profile) by default it will be 1 git-svn-id: http://svn.miranda-ng.org/main/trunk@3346 1316c22d-e87f-b044-9b9b-93d7a3e3ba9c --- plugins/PluginUpdater/src/Utils.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'plugins') diff --git a/plugins/PluginUpdater/src/Utils.cpp b/plugins/PluginUpdater/src/Utils.cpp index 54702c5c27..7a79dd3a10 100644 --- a/plugins/PluginUpdater/src/Utils.cpp +++ b/plugins/PluginUpdater/src/Utils.cpp @@ -170,7 +170,7 @@ BOOL DownloadFile(LPCTSTR tszURL, LPCTSTR tszLocal) void __stdcall RestartMe(void*) { - CallService(MS_SYSTEM_RESTART, 1, 0); + CallService(MS_SYSTEM_RESTART, db_get_b(NULL,MODNAME,"RestartCurrentProfile",1) ? 1 : 0, 0); } ///////////////////////////////////////////////////////////////////////////////////////// -- cgit v1.2.3