diff options
author | Alexis La Goutte <alexis.lagoutte@gmail.com> | 2014-01-05 18:39:43 +0000 |
---|---|---|
committer | Alexis La Goutte <alexis.lagoutte@gmail.com> | 2014-01-05 18:39:43 +0000 |
commit | f27990cfbbf3465897c58880611d11d5ff371363 (patch) | |
tree | 3d01109af05dbc160814104dae4e3af3ea9e71d0 /ui/gtk | |
parent | bf762928058b13f3ed633fe4fdebc320cf2bd2dd (diff) |
Fix indent (use 4 spaces)
svn path=/trunk/; revision=54609
Diffstat (limited to 'ui/gtk')
-rw-r--r-- | ui/gtk/main.c | 38 |
1 files changed, 19 insertions, 19 deletions
diff --git a/ui/gtk/main.c b/ui/gtk/main.c index 78262e49e9..6613145b9b 100644 --- a/ui/gtk/main.c +++ b/ui/gtk/main.c @@ -2385,26 +2385,26 @@ main(int argc, char *argv[]) } } - /* Init the "Open file" dialog directory */ - /* (do this after the path settings are processed) */ - - /* Read the profile dependent (static part) of the recent file. */ - /* Only the static part of it will be read, as we don't have the gui now to fill the */ - /* recent lists which is done in the dynamic part. */ - /* We have to do this already here, so command line parameters can overwrite these values. */ - recent_read_profile_static(&rf_path, &rf_open_errno); - if (rf_path != NULL && rf_open_errno != 0) { - simple_dialog(ESD_TYPE_WARN, ESD_BTN_OK, - "Could not open recent file\n\"%s\": %s.", - rf_path, g_strerror(rf_open_errno)); - } + /* Init the "Open file" dialog directory */ + /* (do this after the path settings are processed) */ - if (recent.gui_fileopen_remembered_dir && - test_for_directory(recent.gui_fileopen_remembered_dir) == EISDIR) { - set_last_open_dir(recent.gui_fileopen_remembered_dir); - } else { - set_last_open_dir(get_persdatafile_dir()); - } + /* Read the profile dependent (static part) of the recent file. */ + /* Only the static part of it will be read, as we don't have the gui now to fill the */ + /* recent lists which is done in the dynamic part. */ + /* We have to do this already here, so command line parameters can overwrite these values. */ + recent_read_profile_static(&rf_path, &rf_open_errno); + if (rf_path != NULL && rf_open_errno != 0) { + simple_dialog(ESD_TYPE_WARN, ESD_BTN_OK, + "Could not open recent file\n\"%s\": %s.", + rf_path, g_strerror(rf_open_errno)); + } + + if (recent.gui_fileopen_remembered_dir && + test_for_directory(recent.gui_fileopen_remembered_dir) == EISDIR) { + set_last_open_dir(recent.gui_fileopen_remembered_dir); + } else { + set_last_open_dir(get_persdatafile_dir()); + } /* Set getopt index back to initial value, so it will start with the first command line parameter again. Also reset opterr to 1, so that |