2017-08-01 Fred Gleason <fredg@paravelsystems.com>

* Fixed a bug in 'rdlogmanager/edit_grid.cpp' to broke functioning of
	the 'Clear Hour' item in the right-click menu.
This commit is contained in:
Fred Gleason 2017-08-01 09:01:10 -04:00
parent 979f477e3b
commit 39c8eb4d58
2 changed files with 5 additions and 1 deletions

View File

@ -15916,3 +15916,6 @@
* Fixed a bug in 'lib/rdevent_line.cpp' that caused an embedded traffic
import event to be assigned incorrect link parameters when scheduled
at midnight.
2017-08-01 Fred Gleason <fredg@paravelsystems.com>
* Fixed a bug in 'rdlogmanager/edit_grid.cpp' to broke functioning of
the 'Clear Hour' item in the right-click menu.

View File

@ -264,9 +264,10 @@ void EditGrid::clearHourData()
{
int dayofweek=edit_rightclick_id/24+1;
int hour=edit_rightclick_id-24*(dayofweek-1);
QString sql=QString("update SERVICE_CLOCKS set CLOCK_NAME=null where ")+
"(SERVICE_NAME=\""+RDEscapeString(edit_servicename)+"\")&&"+
QString().sprintf("HOUR=%d)",hour);
QString().sprintf("(HOUR=%d)",(dayofweek-1)*24+hour);
RDSqlQuery *q=new RDSqlQuery(sql);
delete q;
LabelButton(dayofweek,hour,"");