add function declaration

This commit is contained in:
lakinduakash 2019-04-17 23:10:23 +05:30
parent 3e98d7abd4
commit 5fd51ab86c
2 changed files with 5 additions and 1 deletions

View File

@ -94,8 +94,10 @@ static void on_create_hp_clicked(GtkWidget *widget, gpointer data) {
init_config_val_input(&cv);
if(validator(&cv)==FALSE)
if(validator(&cv)==FALSE){
set_error_text("Check inputs");
return;
}
startShell(build_wh_mkconfig_command(&cv));

View File

@ -40,4 +40,6 @@ static int init_config_val_input(ConfigValues* cv);
static gboolean validator(ConfigValues *cv);
static void set_error_text(char * text);
#endif //WIHOTSPOT_UI_H