From b2663a26fa715df0321890c362459c5d952e0446 Mon Sep 17 00:00:00 2001 From: Stefan Schmidt Date: Wed, 19 Dec 2012 09:47:40 +0000 Subject: [PATCH] e/conf_randr: Move radio creation into the block that needs it. Discussed with devilhorns. SVN revision: 81339 --- src/modules/conf_randr/e_smart_monitor.c | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/src/modules/conf_randr/e_smart_monitor.c b/src/modules/conf_randr/e_smart_monitor.c index 8ef61a15a..e683e0a06 100644 --- a/src/modules/conf_randr/e_smart_monitor.c +++ b/src/modules/conf_randr/e_smart_monitor.c @@ -1052,15 +1052,15 @@ _e_smart_monitor_refresh_rates_fill(Evas_Object *obj) /* compare mode names */ if (!strcmp(mode->name, sd->current.mode->name)) { - /* create radio group for rates */ - if (!rg) rg = e_widget_radio_group_new(&sd->current.refresh_rate); - if ((mode->hTotal) && (mode->vTotal)) { Evas_Object *ow; double rate = 0.0; char buff[1024]; + /* create radio group for rates */ + if (!rg) rg = e_widget_radio_group_new(&sd->current.refresh_rate); + /* calculate rate */ rate = _e_smart_monitor_refresh_rate_get(mode); snprintf(buff, sizeof(buff), "%.1fHz", rate);