diff options
author | Robert Pösel <robyer@seznam.cz> | 2013-06-15 21:28:44 +0000 |
---|---|---|
committer | Robert Pösel <robyer@seznam.cz> | 2013-06-15 21:28:44 +0000 |
commit | 7dff82fea29945f8625ecf3df9f2428dd1ab38d0 (patch) | |
tree | 22daca9f8d98f6e4b091e7bda1e9f13103e66df0 /plugins/PluginUpdater | |
parent | 86beb804f168ad599a79e858e6024f8fd446c34c (diff) |
PluginUpdater: When updating from IM, change clist title to NG. Version bump.
git-svn-id: http://svn.miranda-ng.org/main/trunk@4967 1316c22d-e87f-b044-9b9b-93d7a3e3ba9c
Diffstat (limited to 'plugins/PluginUpdater')
-rw-r--r-- | plugins/PluginUpdater/src/DlgUpdate.cpp | 7 | ||||
-rw-r--r-- | plugins/PluginUpdater/src/Version.h | 2 |
2 files changed, 8 insertions, 1 deletions
diff --git a/plugins/PluginUpdater/src/DlgUpdate.cpp b/plugins/PluginUpdater/src/DlgUpdate.cpp index 92594dfe11..e59ca433e8 100644 --- a/plugins/PluginUpdater/src/DlgUpdate.cpp +++ b/plugins/PluginUpdater/src/DlgUpdate.cpp @@ -130,6 +130,13 @@ LBL_Exit: SafeDeleteFile(p.File.tszDiskPath); // remove .zip after successful update
}
+ // Change title of clist
+ #if MIRANDA_VER < 0x0A00
+ ptrT title = db_get_tsa(NULL, "CList", "TitleText");
+ if (!_tcsicmp(title, _T("Miranda IM")))
+ db_set_ts(NULL, "CList", "TitleText", _T("Miranda NG"));
+ #endif
+
db_set_b(NULL, MODNAME, "RestartCount", 2);
CallFunctionAsync(RestartMe, 0);
goto LBL_Exit;
diff --git a/plugins/PluginUpdater/src/Version.h b/plugins/PluginUpdater/src/Version.h index ac65bec1ec..2ad5fb4242 100644 --- a/plugins/PluginUpdater/src/Version.h +++ b/plugins/PluginUpdater/src/Version.h @@ -1,7 +1,7 @@ #define __MAJOR_VERSION 0
#define __MINOR_VERSION 1
#define __RELEASE_NUM 1
-#define __BUILD_NUM 1
+#define __BUILD_NUM 2
#define __FILEVERSION_STRING __MAJOR_VERSION,__MINOR_VERSION,__RELEASE_NUM,__BUILD_NUM
|