Mercurial > geeqie
diff src/main.c @ 630:83d3ded39e49
An option to save and restore the last path used was added.
This option appears as startup.use_last_path in rc file.
Preferences > General > Startup was modified accordingly.
author | zas_ |
---|---|
date | Sun, 11 May 2008 13:14:58 +0000 |
parents | 1fa2cb6d9d65 |
children | 8cc9f349c670 |
line wrap: on
line diff
--- a/src/main.c Sun May 11 12:23:26 2008 +0000 +++ b/src/main.c Sun May 11 13:14:58 2008 +0000 @@ -1229,6 +1229,12 @@ &options->color_profile.screen_type, &options->color_profile.use_image); + if (options->startup.restore_path && options->startup.use_last_path) + { + g_free(options->startup.path); + options->startup.path = g_strdup(layout_get_path(NULL)); + } + save_options(); keys_save(); @@ -1302,7 +1308,7 @@ exit_program_final(); } -int main (int argc, char *argv[]) +int main(int argc, char *argv[]) { LayoutWindow *lw; gchar *path = NULL;