manager: set default origin
This is a bit of a hack to get the country code property hooked up and will require a rework when multiple provider support is being added. As the default origin is not being used anywhere else in the code it's currently not a problem that we're not tracking if the default origin is being removed. Additionally test-manager.c needed some adjustment.
This commit is contained in:
@@ -59,7 +59,6 @@ test_calls_manager_dummy_provider ()
|
||||
g_assert_nonnull (calls_manager_get_origins (manager));
|
||||
g_assert_true (g_list_model_get_n_items (origins) > 0);
|
||||
g_assert_null (calls_manager_get_calls (manager));
|
||||
g_assert_null (calls_manager_get_default_origin (manager));
|
||||
|
||||
test_call = NULL;
|
||||
if (g_list_model_get_n_items (origins) > 0) {
|
||||
@@ -69,7 +68,6 @@ test_calls_manager_dummy_provider ()
|
||||
origin = g_list_model_get_item (origins, 0);
|
||||
g_assert (CALLS_IS_ORIGIN (origin));
|
||||
|
||||
calls_manager_set_default_origin (manager, origin);
|
||||
g_assert (calls_manager_get_default_origin (manager) == origin);
|
||||
|
||||
calls_origin_dial (origin, "+393422342");
|
||||
|
||||
Reference in New Issue
Block a user