diff options
author | Tobias Weimer <wishmaster51@googlemail.com> | 2013-01-29 20:15:33 +0000 |
---|---|---|
committer | Tobias Weimer <wishmaster51@googlemail.com> | 2013-01-29 20:15:33 +0000 |
commit | aa4bd180f90414716025391d5e3aa8a5512dc071 (patch) | |
tree | 40aafb5fc96be1b4e547fa50a3a9fd728133fbe1 /plugins/PluginUpdater | |
parent | 43eecbf2a0d8dc84dc6f41cb2ef5e1609418a35a (diff) |
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
Diffstat (limited to 'plugins/PluginUpdater')
-rw-r--r-- | plugins/PluginUpdater/src/Utils.cpp | 2 |
1 files changed, 1 insertions, 1 deletions
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);
}
/////////////////////////////////////////////////////////////////////////////////////////
|