No need to call setup_monitor three times in monitor_apply_options()

master
Landry Breuil 2017-02-09 20:13:46 +01:00
parent d7639056d9
commit c21537cd4b
1 changed files with 0 additions and 2 deletions

View File

@ -784,7 +784,6 @@ static void monitor_apply_options(t_global_monitor *global)
global->monitor->options.label_text =
g_strdup(gtk_entry_get_text(GTK_ENTRY(global->monitor->opt_entry)));
setup_monitor(global, FALSE);
if (global->monitor->options.network_device)
{
@ -792,7 +791,6 @@ static void monitor_apply_options(t_global_monitor *global)
}
global->monitor->options.network_device =
g_strdup(gtk_entry_get_text(GTK_ENTRY(global->monitor->net_entry)));
setup_monitor(global, FALSE);
for( i = 0; i < SUM; i++ )
{