projects
/
modest
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
|
inline
| side by side
Fix modest_tny_msg_header_get_all_recipients_list (in case from is empty)
[modest]
/
src
/
modest-init.c
diff --git
a/src/modest-init.c
b/src/modest-init.c
index
b412c33
..
a4f4a89
100644
(file)
--- a/
src/modest-init.c
+++ b/
src/modest-init.c
@@
-36,6
+36,7
@@
#include <modest-runtime-priv.h>
#include <modest-init.h>
#include <modest-defs.h>
#include <modest-runtime-priv.h>
#include <modest-init.h>
#include <modest-defs.h>
+#include "modest-address-book.h"
#include <modest-singletons.h>
#include <widgets/modest-header-view.h>
#include <widgets/modest-folder-view.h>
#include <modest-singletons.h>
#include <widgets/modest-header-view.h>
#include <widgets/modest-folder-view.h>
@@
-245,6
+246,9
@@
modest_init (int argc, char *argv[])
return FALSE;
}
return FALSE;
}
+ /* Initialize addressbook */
+ modest_address_book_init ();
+
reset = modest_runtime_get_debug_flags () & MODEST_RUNTIME_DEBUG_FACTORY_SETTINGS;
if (!init_header_columns(modest_runtime_get_conf(), reset)) {
modest_init_uninit ();
reset = modest_runtime_get_debug_flags () & MODEST_RUNTIME_DEBUG_FACTORY_SETTINGS;
if (!init_header_columns(modest_runtime_get_conf(), reset)) {
modest_init_uninit ();
@@
-564,11
+568,29
@@
init_debug_g_type (void)
g_type_init_with_debug_flags (gflags);
}
g_type_init_with_debug_flags (gflags);
}
+#ifndef DEBUG
+static void
+null_log(const gchar* dom,
+ GLogLevelFlags l,
+ const gchar* m,
+ gpointer d)
+{
+ return;
+};
+#endif
+
static void
init_debug_logging (void)
{
ModestRuntimeDebugFlags mflags;
mflags = modest_runtime_get_debug_flags ();
static void
init_debug_logging (void)
{
ModestRuntimeDebugFlags mflags;
mflags = modest_runtime_get_debug_flags ();
+
+#ifndef DEBUG
+ if (! (mflags & MODEST_RUNTIME_DEBUG_CODE)) {
+ g_log_set_handler (NULL, G_LOG_LEVEL_DEBUG, null_log, NULL);
+ }
+#endif
+
if (mflags & MODEST_RUNTIME_DEBUG_ABORT_ON_WARNING)
g_log_set_always_fatal (G_LOG_LEVEL_ERROR |
if (mflags & MODEST_RUNTIME_DEBUG_ABORT_ON_WARNING)
g_log_set_always_fatal (G_LOG_LEVEL_ERROR |