aboutsummaryrefslogtreecommitdiffstats
path: root/shell/e-shell-migrate.c
diff options
context:
space:
mode:
Diffstat (limited to 'shell/e-shell-migrate.c')
-rw-r--r--shell/e-shell-migrate.c8
1 files changed, 3 insertions, 5 deletions
diff --git a/shell/e-shell-migrate.c b/shell/e-shell-migrate.c
index 5fb5ca0993..b05e8a293f 100644
--- a/shell/e-shell-migrate.c
+++ b/shell/e-shell-migrate.c
@@ -799,7 +799,7 @@ e_shell_migrate_attempt (EShell *shell)
ESEvent *ese;
GSettings *settings;
gint major, minor, micro;
- gint curr_major, curr_minor, curr_micro;
+ gint curr_major, curr_minor;
gchar *string;
g_return_val_if_fail (E_IS_SHELL (shell), FALSE);
@@ -811,8 +811,6 @@ e_shell_migrate_attempt (EShell *shell)
return TRUE;
}
- curr_micro = atoi (UPGRADE_REVISION);
-
shell_migrate_get_version (shell, &major, &minor, &micro);
/* Migrate to XDG Base Directories first, so shell backends
@@ -830,7 +828,7 @@ e_shell_migrate_attempt (EShell *shell)
/* Record a successful migration. */
string = g_strdup_printf (
- "%d.%d.%d", curr_major, curr_minor, curr_micro);
+ "%d.%d.%d", curr_major, curr_minor, 0);
g_settings_set_string (settings, "version", string);
g_free (string);
@@ -847,7 +845,7 @@ e_shell_migrate_attempt (EShell *shell)
e_event_emit (
(EEvent *) ese, "upgrade.done",
(EEventTarget *) es_event_target_new_upgrade (
- ese, curr_major, curr_minor, curr_micro));
+ ese, curr_major, curr_minor, 0));
return TRUE;
}