mirror of
https://github.com/Gnucash/gnucash.git
synced 2025-02-25 18:55:30 -06:00
Change the way colours are imported by the CSV account tree importer
When importing the account tree CSV file, change the importing of colours so that only valid colours for accounts are updated, invalid colours will result in the account color key slot being removed.
This commit is contained in:
@@ -283,6 +283,8 @@ csv_account_import (CsvImportInfo *info)
|
||||
{
|
||||
if (gdk_rgba_parse (&testcolor, color))
|
||||
xaccAccountSetColor (acc, color);
|
||||
else
|
||||
xaccAccountSetColor (acc, "");
|
||||
}
|
||||
|
||||
if (g_strcmp0 (hidden, "T") == 0)
|
||||
@@ -323,6 +325,8 @@ csv_account_import (CsvImportInfo *info)
|
||||
{
|
||||
if (gdk_rgba_parse (&testcolor, color))
|
||||
xaccAccountSetColor (acc, color);
|
||||
else
|
||||
xaccAccountSetColor (acc, "");
|
||||
}
|
||||
|
||||
if (g_strcmp0 (notes, "") != 0)
|
||||
|
||||
Reference in New Issue
Block a user