From 16ae921196f21a6f9c95f27fe94bf61f0df9eda1 Mon Sep 17 00:00:00 2001 From: rbuj Date: Thu, 30 Jan 2020 17:03:35 +0100 Subject: Terminate the application if the resource doesn't exists --- src/dlg-extract.c | 5 +---- 1 file changed, 1 insertion(+), 4 deletions(-) (limited to 'src/dlg-extract.c') diff --git a/src/dlg-extract.c b/src/dlg-extract.c index e5b53f3..5eda7dc 100644 --- a/src/dlg-extract.c +++ b/src/dlg-extract.c @@ -295,10 +295,7 @@ dlg_extract__common (FrWindow *window, DialogData *data; data = g_new0 (DialogData, 1); - if ((data->builder = _gtk_builder_new_from_resource ("dlg-extract.ui")) == NULL) { - g_free (data); - return; - } + data->builder = gtk_builder_new_from_resource (ENGRAMPA_RESOURCE_UI_PATH G_DIR_SEPARATOR_S "dlg-extract.ui"); data->settings = g_settings_new (ENGRAMPA_SCHEMA_EXTRACT); data->window = window; data->selected_files = selected_files; -- cgit v1.2.1