Unset house system is now a critical error

Fixes #38
This commit is contained in:
Gergely Polonkai 2014-07-18 22:33:58 +02:00
parent 9ca605c9c4
commit d23c7c42c4

View File

@ -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(