summaryrefslogtreecommitdiff
path: root/plugins/Db_autobackups
diff options
context:
space:
mode:
authorMikalaiR <nikolay.romanovich@narod.ru>2015-12-20 16:13:56 +0000
committerMikalaiR <nikolay.romanovich@narod.ru>2015-12-20 16:13:56 +0000
commit24ef168d9820f7bb07f46bad15e2feacce47280a (patch)
treea3d002eda7483076ba1e5f67154b8f2aa18c9d42 /plugins/Db_autobackups
parentb76c5a1d907f6310d38230cc6aec2caf7dcc34be (diff)
Db_autobackups: fix for dropbox setting
git-svn-id: http://svn.miranda-ng.org/main/trunk@15913 1316c22d-e87f-b044-9b9b-93d7a3e3ba9c
Diffstat (limited to 'plugins/Db_autobackups')
-rw-r--r--plugins/Db_autobackups/src/main.cpp1
-rw-r--r--plugins/Db_autobackups/src/options.cpp2
2 files changed, 2 insertions, 1 deletions
diff --git a/plugins/Db_autobackups/src/main.cpp b/plugins/Db_autobackups/src/main.cpp
index f32c673ee2..8e505794ac 100644
--- a/plugins/Db_autobackups/src/main.cpp
+++ b/plugins/Db_autobackups/src/main.cpp
@@ -86,6 +86,7 @@ static int ModulesLoad(WPARAM, LPARAM)
HookEvent(ME_FOLDERS_PATH_CHANGED, FoldersGetBackupPath);
FoldersGetBackupPath(0, 0);
}
+ options.use_dropbox = (BOOL)(db_get_b(0, "AutoBackups", "UseDropbox", 0) && ServiceExists(MS_DROPBOX_SEND_FILE));
if (options.backup_types & BT_START)
BackupStart(NULL);
diff --git a/plugins/Db_autobackups/src/options.cpp b/plugins/Db_autobackups/src/options.cpp
index 4f4339b2f8..90e2fa5fdc 100644
--- a/plugins/Db_autobackups/src/options.cpp
+++ b/plugins/Db_autobackups/src/options.cpp
@@ -60,7 +60,7 @@ int LoadOptions(void)
options.disable_progress = (BOOL)db_get_b(0, "AutoBackups", "NoProgress", 0);
options.disable_popups = (BOOL)db_get_b(0, "AutoBackups", "NoPopups", 0);
options.use_zip = (BOOL)db_get_b(0, "AutoBackups", "UseZip", 0);
- options.use_dropbox = (BOOL)db_get_b(0, "AutoBackups", "UseDropbox", 0);
+ options.use_dropbox = (BOOL)(db_get_b(0, "AutoBackups", "UseDropbox", 0) && ServiceExists(MS_DROPBOX_SEND_FILE));
SetBackupTimer();
return 0;