summaryrefslogtreecommitdiffabout
path: root/gammu/emb/gammu/gammu.c
Side-by-side diff
Diffstat (limited to 'gammu/emb/gammu/gammu.c') (more/less context) (ignore whitespace changes)
-rw-r--r--gammu/emb/gammu/gammu.c6
1 files changed, 5 insertions, 1 deletions
diff --git a/gammu/emb/gammu/gammu.c b/gammu/emb/gammu/gammu.c
index a3b93a8..997485a 100644
--- a/gammu/emb/gammu/gammu.c
+++ b/gammu/emb/gammu/gammu.c
@@ -4629,2 +4629,3 @@ static void Restore(int argc, char *argv[])
if (Backup.Calendar[0] != NULL) {
+ DoRestore = true;
/* N6110 doesn't support getting calendar status */
@@ -4680,2 +4681,4 @@ static void Restore(int argc, char *argv[])
if (error == ERR_NONE) {
+ error == ERR_NOTSUPPORTED;
+ DoRestore = true;
max = 0;
@@ -4688,4 +4691,6 @@ static void Restore(int argc, char *argv[])
if (DoRestore) {
+ if ( max > 0 ) {
ToDo = *Backup.ToDo[0];
error = Phone->SetToDo(&s,&ToDo);
+ }
}
@@ -8376,3 +8381,2 @@ int main(int argc, char *argv[])
#endif
- argc = argc-3;