diff options
author | Tobias Weimer <wishmaster51@googlemail.com> | 2013-10-28 18:35:39 +0000 |
---|---|---|
committer | Tobias Weimer <wishmaster51@googlemail.com> | 2013-10-28 18:35:39 +0000 |
commit | 9a544494ea5dc8b9a41da6d38015e9c4a1a0f3a6 (patch) | |
tree | 580f3a56e8beca3125e2f23554bc66fba56ee615 /plugins/Db_autobackups/src/main.cpp | |
parent | fe82414371277756f2612ba8542c4b23f5625917 (diff) |
cleanup
git-svn-id: http://svn.miranda-ng.org/main/trunk@6662 1316c22d-e87f-b044-9b9b-93d7a3e3ba9c
Diffstat (limited to 'plugins/Db_autobackups/src/main.cpp')
-rw-r--r-- | plugins/Db_autobackups/src/main.cpp | 21 |
1 files changed, 3 insertions, 18 deletions
diff --git a/plugins/Db_autobackups/src/main.cpp b/plugins/Db_autobackups/src/main.cpp index dc6aea1c5d..097f7d54ee 100644 --- a/plugins/Db_autobackups/src/main.cpp +++ b/plugins/Db_autobackups/src/main.cpp @@ -67,9 +67,7 @@ static int ModulesLoad(WPARAM, LPARAM) FoldersInit();
LoadOptions();
- MenuInit();
- HookEvent(ME_OPT_INITIALISE, OptionsInit);
if(options.backup_types & BT_START)
mir_forkthread(BackupThread, NULL);
return 0;
@@ -94,7 +92,9 @@ void SysInit() CreateServiceFunction(MS_AB_BACKUP, ABService);
CreateServiceFunction(MS_AB_SAVEAS, DBSaveAs);
-
+ MenuInit();
+
+ HookEvent(ME_OPT_INITIALISE, OptionsInit);
HookEvent(ME_SYSTEM_PRESHUTDOWN, PreShutdown);
HookEvent(ME_SYSTEM_MODULESLOADED, ModulesLoad);
}
@@ -133,21 +133,6 @@ void ShowPopup(TCHAR* text, TCHAR* header) PUAddPopupT(&ppd);
}
-int CreateDirectoryTree(TCHAR *szDir)
-{
- TCHAR szTestDir[MAX_PATH];
-
- lstrcpyn(szTestDir, szDir, SIZEOF(szTestDir));
- TCHAR *pszLastBackslash = _tcsrchr( szTestDir, '\\' );
- if ( pszLastBackslash == NULL )
- return 0;
-
- *pszLastBackslash = '\0';
- CreateDirectoryTree( szTestDir );
- *pszLastBackslash = '\\';
- return ( CreateDirectory( szTestDir, NULL ) == 0 ) ? GetLastError() : 0;
-}
-
HWND CreateToolTip(HWND hwndParent, LPTSTR ptszText, LPTSTR ptszTitle)
{
HWND hwndTT = CreateWindowEx(WS_EX_TOPMOST,
|