mirror of
https://github.com/Gnucash/gnucash.git
synced 2025-02-25 18:55:30 -06:00
Add warning when overwriting an already installed dirty-callback.
git-svn-id: svn+ssh://svn.gnucash.org/repo/gnucash/trunk@16228 57a11ea4-9604-0410-9ed3-97b8803252fd
This commit is contained in:
parent
cfc821ac45
commit
ea0d0c6274
@ -221,6 +221,9 @@ qof_book_get_dirty_time (const QofBook *book)
|
||||
void
|
||||
qof_book_set_dirty_cb(QofBook *book, QofBookDirtyCB cb, gpointer user_data)
|
||||
{
|
||||
if (book->dirty_cb)
|
||||
g_warning("qof_book_set_dirty_cb: Already existing callback %p, will be overwritten by %p\n",
|
||||
book->dirty_cb, cb);
|
||||
book->dirty_data = user_data;
|
||||
book->dirty_cb = cb;
|
||||
}
|
||||
|
Loading…
Reference in New Issue
Block a user