diff options
Diffstat (limited to 'plugins/Db_autobackups')
-rw-r--r-- | plugins/Db_autobackups/backup.c | 8 | ||||
-rw-r--r-- | plugins/Db_autobackups/options.c | 6 |
2 files changed, 7 insertions, 7 deletions
diff --git a/plugins/Db_autobackups/backup.c b/plugins/Db_autobackups/backup.c index 377a1fe539..3b0229ac56 100644 --- a/plugins/Db_autobackups/backup.c +++ b/plugins/Db_autobackups/backup.c @@ -98,7 +98,7 @@ int RotateBackups(HWND progress_dialog, DWORD start_time) i++;
while(PeekMessage(&msg, progress_dialog, 0, 0, PM_REMOVE) != 0)
{
- if(!IsDialogMessage(progress_dialog, &msg))
+ if (!IsDialogMessage(progress_dialog, &msg))
{
TranslateMessage(&msg);
DispatchMessage(&msg);
@@ -154,10 +154,10 @@ int Backup(TCHAR* backup_filename) else
lstrcpyn(dest_file, backup_filename, MAX_PATH);
- if(!options.disable_popups)
+ if (!options.disable_popups)
ShowPopup(dbname, TranslateT("Backup in Progress"));
- if(!options.disable_progress) {
+ if (!options.disable_progress) {
progress_dialog = CreateDialog(hInst, MAKEINTRESOURCE(IDD_COPYPROGRESS), 0, (DLGPROC)DlgProcProgress);
SetDlgItemText(progress_dialog, IDC_PROGRESSMESSAGE, TranslateT("Rotating backup files..."));
}
@@ -175,7 +175,7 @@ int Backup(TCHAR* backup_filename) SendMessage(progress_dialog, PBM_SETPOS, (WPARAM)(int)(100), 0);
UpdateWindow(progress_dialog);
DBWriteContactSettingDword(0, "AutoBackups", "LastBackupTimestamp", (DWORD)time(0));
- if(!options.disable_popups)
+ if (!options.disable_popups)
{
dest_file_len = lstrlen(dest_file);
if(dest_file_len > 50)
diff --git a/plugins/Db_autobackups/options.c b/plugins/Db_autobackups/options.c index 51baa1b687..acb6072718 100644 --- a/plugins/Db_autobackups/options.c +++ b/plugins/Db_autobackups/options.c @@ -12,9 +12,9 @@ int LoadOptions(void) { options.period = (unsigned int)DBGetContactSettingWord(0, "AutoBackups", "Period", 1);
options.period_type = (PeriodType)DBGetContactSettingByte(0, "AutoBackups", "PeriodType", (BYTE)PT_DAYS);
- if(!ServiceExists(MS_FOLDERS_GET_PATH)) {
+ if (!ServiceExists(MS_FOLDERS_GET_PATH)) {
- if(!DBGetContactSettingTString(0, "AutoBackups", "Folder", &dbv)) {
+ if (!DBGetContactSettingTString(0, "AutoBackups", "Folder", &dbv)) {
tmp = Utils_ReplaceVarsT(dbv.ptszVal);
if(_tcslen(tmp) >= 2 && tmp[1] == ':')
@@ -244,7 +244,7 @@ INT_PTR CALLBACK DlgProcOptions(HWND hwndDlg, UINT msg, WPARAM wParam, LPARAM lP bi.lParam = 0;
bi.iImage = 0;
- if((pidl = SHBrowseForFolder(&bi)) != 0) {
+ if ((pidl = SHBrowseForFolder(&bi)) != 0) {
SHGetPathFromIDList(pidl, folder_buff);
SetDlgItemText(hwndDlg, IDC_ED_FOLDER, folder_buff);
|