diff options
author | MikalaiR <nikolay.romanovich@narod.ru> | 2016-03-04 14:22:29 +0000 |
---|---|---|
committer | MikalaiR <nikolay.romanovich@narod.ru> | 2016-03-04 14:22:29 +0000 |
commit | e382b9d89cb1cc9e07b102f6a7db4f866a311d11 (patch) | |
tree | 845b49218a88e4b5b3e1ee8df8688aadd1f8ba85 /plugins/Db_autobackups/src/backup.cpp | |
parent | 3c66ceadb3f7447ab4d2ef4cfe6e8d6886ef5339 (diff) |
DB_autobackups: dropbox support reworked
git-svn-id: http://svn.miranda-ng.org/main/trunk@16415 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, 5 insertions, 1 deletions
diff --git a/plugins/Db_autobackups/src/backup.cpp b/plugins/Db_autobackups/src/backup.cpp index b83a4f527e..18fd521c14 100644 --- a/plugins/Db_autobackups/src/backup.cpp +++ b/plugins/Db_autobackups/src/backup.cpp @@ -58,6 +58,7 @@ INT_PTR CALLBACK DlgProcProgress(HWND hwndDlg, UINT msg, WPARAM wParam, LPARAM) }
return FALSE;
}
+
TCHAR* DoubleSlash(TCHAR *sorce)
{
TCHAR *ret, *r, *s;
@@ -318,7 +319,10 @@ int Backup(TCHAR *backup_filename) if (options.use_dropbox)
{
- CallService(MS_DROPBOX_SEND_FILE, NULL, (LPARAM)&dest_file);
+ CMString s_path(FORMAT, L"/Backups/%s", _tcsrchr(dest_file, '\\') + 1);
+ DropboxUploadInfo dui = { dest_file, s_path.GetString() };
+ if (CallService(MS_DROPBOX_UPLOAD, NULL, (LPARAM)&dui))
+ ShowPopup(TranslateT("Uploading to Dropbox failed"), TranslateT("Error"), nullptr);
}
if (!options.disable_popups) {
|