Commit ba540cc9 authored by Christian Persch's avatar Christian Persch

shell: Don't crash when we don't have a DBUS connection

When getting the DBUS fails, we don't create the applications->windows
hash table, but were still looking things up in it.
parent ebcb3111
......@@ -667,7 +667,8 @@ ev_application_open_uri_in_window (EvApplication *application,
ev_window_open_uri (ev_window, uri, dest, mode, search_string);
#ifdef ENABLE_DBUS
if (!g_hash_table_lookup (application->windows, ev_window)) {
if (application->windows != NULL &&
!g_hash_table_lookup (application->windows, ev_window)) {
g_hash_table_insert (application->windows, ev_window, g_strdup (uri));
g_signal_connect_swapped (ev_window, "destroy",
G_CALLBACK (ev_application_window_destroyed),
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment