diff options
author | MikalaiR <nikolay.romanovich@narod.ru> | 2015-10-15 10:36:22 +0000 |
---|---|---|
committer | MikalaiR <nikolay.romanovich@narod.ru> | 2015-10-15 10:36:22 +0000 |
commit | b1e20e52b7b0ed9cd528e209d0a09e1ef4e2c3b7 (patch) | |
tree | be0c0c2c428f5cde651c83c1832a261c5f82fbe4 /plugins/Db_autobackups/src/backup.cpp | |
parent | d7b9ee00b935f774c1d521b9efcb2e41f087f744 (diff) |
db_autobackups: dropbox support
git-svn-id: http://svn.miranda-ng.org/main/trunk@15560 1316c22d-e87f-b044-9b9b-93d7a3e3ba9c
Diffstat (limited to 'plugins/Db_autobackups/src/backup.cpp')
-rw-r--r-- | plugins/Db_autobackups/src/backup.cpp | 6 |
1 files changed, 6 insertions, 0 deletions
diff --git a/plugins/Db_autobackups/src/backup.cpp b/plugins/Db_autobackups/src/backup.cpp index 3a9a39b7e4..dad007daba 100644 --- a/plugins/Db_autobackups/src/backup.cpp +++ b/plugins/Db_autobackups/src/backup.cpp @@ -272,6 +272,12 @@ int Backup(TCHAR *backup_filename) SendDlgItemMessage(progress_dialog, IDC_PROGRESS, PBM_SETPOS, (WPARAM)(100), 0);
UpdateWindow(progress_dialog);
db_set_dw(0, "AutoBackups", "LastBackupTimestamp", (DWORD)time(0));
+
+ if (options.use_dropbox)
+ {
+ CallService(MS_DROPBOX_SEND_FILE, NULL, (LPARAM)&dest_file);
+ }
+
if (!options.disable_popups) {
size_t dest_file_len = mir_tstrlen(dest_file);
TCHAR *puText;
|