[grisbi-bugs] [Grisbi-0.6.0 0000653]: Default accounts file path is wrong in the "New accounts file" wizard

bugtracker at grisbi.org bugtracker at grisbi.org
Sun Oct 4 16:56:49 CEST 2009


A NOTE has been added to this issue. 
====================================================================== 
http://grisbi.tuxfamily.org/mantis/view.php?id=653 
====================================================================== 
Reported By:                guneeyoufix
Assigned To:                
====================================================================== 
Project:                    Grisbi-0.6.0
Issue ID:                   653
Category:                   Main
Reproducibility:            always
Severity:                   minor
Priority:                   normal
Status:                     new
Plateforme:                 Windows 
OS:                         Windows 
Version OS:                 Vista Familiale Premium 
Unstable Impact:            Yes 
Version GTK:                 
====================================================================== 
Date Submitted:             09-30-2009 21:16 UTC
Last Modified:              10-04-2009 14:56 UTC
====================================================================== 
Summary:                    Default accounts file path is wrong in the "New
accounts file" wizard
Description: 
The default path proposed for the location of the new accounts file in the
wizard is wrong

Observed : "C:\Users\<username>\Documents\\My accounts.gsb"
Expected : "C:\Users\<username>\Documents\My accounts.gsb"
====================================================================== 

---------------------------------------------------------------------- 
 guneeyoufix - 10-02-09 09:34  
---------------------------------------------------------------------- 
in grisbi/src/gsb_assistant_file.c: 292

  292 	nom_fichier_comptes = g_strconcat ( my_get_gsb_file_default_dir
(),
  293 			G_DIR_SEPARATOR_S, titre_fichier, ".gsb", NULL );

The my_get_gsb_file_default_dir () probably already returns a path ending
with a G_DIR_SEPARATOR_S. 

---------------------------------------------------------------------- 
 guneeyoufix - 10-04-09 14:56  
---------------------------------------------------------------------- 
On Win32 OSes, the 
    "my_get_gsb_file_default_dir ()" function in file "utils_files.c"
returns the output of the
    "win32_get_my_documents_folder_path()" function in file
"win32_utils.c"

This function already adds a backslash to the default dir path.

I'd suggest to remove the line doing that from the "win32_utils.c" file
(line 188). 

Issue History 
Date Modified   Username       Field                    Change               
====================================================================== 
09-30-09 21:16  guneeyoufix    New Issue                                    
09-30-09 21:16  guneeyoufix    Plateforme                => Windows         
09-30-09 21:16  guneeyoufix    OS                        => Windows         
09-30-09 21:16  guneeyoufix    Version OS                => Vista Familiale
Premium
09-30-09 21:16  guneeyoufix    Unstable Impact           => Yes             
10-02-09 09:34  guneeyoufix    Note Added: 0001166                          
10-04-09 14:56  guneeyoufix    Note Added: 0001172                          
======================================================================



More information about the bugsreports mailing list