mirror of
https://github.com/Gnucash/gnucash.git
synced 2025-02-25 18:55:30 -06:00
Replace tabs with spaces and fix some indenting in gnc-file.c
This commit is contained in:
parent
641925f2d0
commit
97c191cd42
@ -834,8 +834,8 @@ RESTART:
|
|||||||
if (!show_session_error (parent, io_err, newfile, GNC_FILE_DIALOG_OPEN))
|
if (!show_session_error (parent, io_err, newfile, GNC_FILE_DIALOG_OPEN))
|
||||||
{
|
{
|
||||||
/* user told us to create a new database. Do it. We
|
/* user told us to create a new database. Do it. We
|
||||||
* shouldn't have to worry about locking or clobbering,
|
* shouldn't have to worry about locking or clobbering,
|
||||||
* it's supposed to be new. */
|
* it's supposed to be new. */
|
||||||
qof_session_begin (new_session, newfile, FALSE, TRUE, FALSE);
|
qof_session_begin (new_session, newfile, FALSE, TRUE, FALSE);
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
@ -1193,14 +1193,14 @@ gnc_file_do_export(GtkWindow *parent, const char * filename)
|
|||||||
/* Some extra steps for file based uri's only */
|
/* Some extra steps for file based uri's only */
|
||||||
if (gnc_uri_is_file_protocol(protocol))
|
if (gnc_uri_is_file_protocol(protocol))
|
||||||
{
|
{
|
||||||
if (check_file_path (path))
|
if (check_file_path (path))
|
||||||
{
|
{
|
||||||
show_session_error (parent, ERR_FILEIO_RESERVED_WRITE, newfile,
|
show_session_error (parent, ERR_FILEIO_RESERVED_WRITE, newfile,
|
||||||
GNC_FILE_DIALOG_SAVE);
|
GNC_FILE_DIALOG_SAVE);
|
||||||
return;
|
return;
|
||||||
}
|
}
|
||||||
gnc_set_default_directory (GNC_PREFS_GROUP_OPEN_SAVE,
|
gnc_set_default_directory (GNC_PREFS_GROUP_OPEN_SAVE,
|
||||||
g_path_get_dirname(path));
|
g_path_get_dirname(path));
|
||||||
}
|
}
|
||||||
/* Check to see if the user specified the same file as the current
|
/* Check to see if the user specified the same file as the current
|
||||||
* file. If so, prevent the export from happening to avoid killing this file */
|
* file. If so, prevent the export from happening to avoid killing this file */
|
||||||
@ -1425,14 +1425,14 @@ gnc_file_do_save_as (GtkWindow *parent, const char* filename)
|
|||||||
/* Some extra steps for file based uri's only */
|
/* Some extra steps for file based uri's only */
|
||||||
if (gnc_uri_is_file_protocol(protocol))
|
if (gnc_uri_is_file_protocol(protocol))
|
||||||
{
|
{
|
||||||
if (check_file_path (path))
|
if (check_file_path (path))
|
||||||
{
|
{
|
||||||
show_session_error (parent, ERR_FILEIO_RESERVED_WRITE, newfile,
|
show_session_error (parent, ERR_FILEIO_RESERVED_WRITE, newfile,
|
||||||
GNC_FILE_DIALOG_SAVE);
|
GNC_FILE_DIALOG_SAVE);
|
||||||
return;
|
return;
|
||||||
}
|
}
|
||||||
gnc_set_default_directory (GNC_PREFS_GROUP_OPEN_SAVE,
|
gnc_set_default_directory (GNC_PREFS_GROUP_OPEN_SAVE,
|
||||||
g_path_get_dirname (path));
|
g_path_get_dirname (path));
|
||||||
}
|
}
|
||||||
|
|
||||||
/* Check to see if the user specified the same file as the current
|
/* Check to see if the user specified the same file as the current
|
||||||
|
Loading…
Reference in New Issue
Block a user