Adapt cutecash to r18842.

git-svn-id: svn+ssh://svn.gnucash.org/repo/gnucash/trunk@18845 57a11ea4-9604-0410-9ed3-97b8803252fd
This commit is contained in:
Christian Stimming 2010-03-05 20:32:13 +00:00
parent c6e43486f8
commit 18f663de25
2 changed files with 4 additions and 2 deletions

View File

@ -26,6 +26,7 @@ SET (libgnc_core_utils_SOURCES
gnc-glib-utils.c
gnc-main.c
gnc-path.c
gnc-uri-utils.c
${SWIG_CORE_UTILS_C}
)
@ -52,6 +53,7 @@ SET (libgnc_core_utils_HEADERS
gnc-glib-utils.h
gnc-main.h
gnc-path.h
gnc-uri-utils.h
)
ADD_LIBRARY (core-utils

View File

@ -36,7 +36,7 @@ extern "C"
{
#include "qof.h"
#include "engine/gnc-hooks.h"
#include "core-utils/gnc-filepath-utils.h"
#include "core-utils/gnc-uri-utils.h"
#include "engine/Account.h"
#include "engine/TransLog.h"
}
@ -408,7 +408,7 @@ void MainWindow::loadFile(const QString &fileName)
if (!we_are_in_error)
{
char * logpath = xaccResolveFilePath(newfile);
char * logpath = gnc_uri_get_path(newfile);
PINFO ("logpath=%s", logpath ? logpath : "(null)");
xaccLogSetBaseName (logpath);
xaccLogDisable();