mirror of
https://github.com/Gnucash/gnucash.git
synced 2025-02-25 18:55:30 -06:00
When exporting, force file type to be QSF
git-svn-id: svn+ssh://svn.gnucash.org/repo/gnucash/trunk@18110 57a11ea4-9604-0410-9ed3-97b8803252fd
This commit is contained in:
parent
a82a185160
commit
82ec8b2f7d
@ -725,7 +725,8 @@ gnc_plugin_business_cmd_export_invoice (GtkAction *action, GncMainWindowActionDa
|
|||||||
NULL, GNC_FILE_DIALOG_EXPORT);
|
NULL, GNC_FILE_DIALOG_EXPORT);
|
||||||
if (filename)
|
if (filename)
|
||||||
{
|
{
|
||||||
qof_session_begin(chart_session, filename, TRUE, TRUE);
|
gchar* url = g_strdup_printf( "qsf:%s", filename );
|
||||||
|
qof_session_begin(chart_session, url, TRUE, TRUE);
|
||||||
coll = qof_book_get_collection(book, GNC_ID_INVOICE);
|
coll = qof_book_get_collection(book, GNC_ID_INVOICE);
|
||||||
success = qof_instance_copy_coll_r(chart_session, coll);
|
success = qof_instance_copy_coll_r(chart_session, coll);
|
||||||
/* Need to get the GList of GncEntry's - KVP */
|
/* Need to get the GList of GncEntry's - KVP */
|
||||||
@ -735,6 +736,7 @@ gnc_plugin_business_cmd_export_invoice (GtkAction *action, GncMainWindowActionDa
|
|||||||
{
|
{
|
||||||
qof_session_save(chart_session, NULL);
|
qof_session_save(chart_session, NULL);
|
||||||
}
|
}
|
||||||
|
g_free(url);
|
||||||
}
|
}
|
||||||
show_session_error(qof_session_get_error(chart_session), filename,
|
show_session_error(qof_session_get_error(chart_session), filename,
|
||||||
GNC_FILE_DIALOG_EXPORT);
|
GNC_FILE_DIALOG_EXPORT);
|
||||||
|
Loading…
Reference in New Issue
Block a user