From cb42e21e467a2cbc3fdacacb5973774ff12c6324 Mon Sep 17 00:00:00 2001 From: Ivan Dmitrievich Yartsev Date: Mon, 8 Dec 2025 18:16:42 +0600 Subject: [PATCH] Test Db update cancel fix --- source/ubl-settings-video.c | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/source/ubl-settings-video.c b/source/ubl-settings-video.c index ff0dc5b..6187f66 100644 --- a/source/ubl-settings-video.c +++ b/source/ubl-settings-video.c @@ -965,11 +965,11 @@ int main(int argc, char *argv[]){ if (system(yon_check_database_command)){ dialog_confirmation_data *data = yon_confirmation_dialog_data_new(); data->action_text=DATABASE_UNACCESSIBLE_LABEL; - if (yon_confirmation_dialog_call(widgets->HeadOverlay,data) != GTK_RESPONSE_CANCEL){ + GtkResponseType resp = yon_confirmation_dialog_call(widgets->HeadOverlay,data); + if (resp){ on_database_update(NULL,widgets); } else { - yon_proprietary_get_thread(NULL,(main_window*)widgets); - + yon_proprietary_get_thread(NULL,(main_window*)widgets); } } else { yon_proprietary_get_thread(NULL,(main_window*)widgets);