From d23c7c42c4ec6d834b220488387e84b4c7f608cf Mon Sep 17 00:00:00 2001 From: Gergely Polonkai Date: Fri, 18 Jul 2014 22:33:58 +0200 Subject: [PATCH] Unset house system is now a critical error Fixes #38 --- src/ag-window.c | 11 +---------- 1 file changed, 1 insertion(+), 10 deletions(-) diff --git a/src/ag-window.c b/src/ag-window.c index 406b96f..acc8354 100644 --- a/src/ag-window.c +++ b/src/ag-window.c @@ -802,16 +802,7 @@ recalculate_chart(AgWindow *window) GTK_COMBO_BOX(priv->house_system), &house_system_iter )) { - // TODO: a better approach must be made here. If there is an error, we - // cannot calculate the chart. If we are changing tabs, this should even - // prevent it! - ag_app_message_dialog( - GTK_WIDGET(window), - GTK_MESSAGE_ERROR, - "House system must be set!" - ); - - return; + g_error("House system is not set! This is clearly a bug."); } gtk_tree_model_get(