Server update for bug Multiple 'Predefined graph' issues (Bug #686)
authorzev <zev@radensolutions.com>
Fri, 5 Dec 2014 12:08:05 +0000 (14:08 +0200)
committerzev <zev@radensolutions.com>
Fri, 5 Dec 2014 12:08:13 +0000 (14:08 +0200)
include/nxclapi.h
src/server/core/session.cpp

index 7681f9c..6f60f10 100644 (file)
@@ -422,6 +422,7 @@ enum
 #define NX_NOTIFY_FILE_LIST_CHANGED          25
 #define NX_NOTIFY_FILE_MONITORING_FAILED     26
 #define NX_NOTIFY_SESSION_KILLED             27
+#define NX_NOTIFY_GRAPHS_DELETED             28
 
 /**
  * Request completion codes
index 67d5d00..2b03ce4 100644 (file)
@@ -9919,7 +9919,7 @@ void ClientSession::saveGraph(NXCPMessage *pRequest)
                                DBCommit(hdb);
                                msg.setField(VID_RCC, RCC_SUCCESS);
                                msg.setField(VID_GRAPH_ID, graphId);
-                               notify(NX_NOTIFY_GRAPHS_CHANGED);
+                               notify(NX_NOTIFY_GRAPHS_CHANGED, graphId);
                        }
                        else
                        {
@@ -9974,7 +9974,7 @@ void ClientSession::deleteGraph(NXCPMessage *pRequest)
                                                _sntprintf(szQuery, sizeof(szQuery) / sizeof(TCHAR), _T("DELETE FROM graph_acl WHERE graph_id=%d"), dwGraphId);
                                                DBQuery(hdb, szQuery);
                                                msg.setField(VID_RCC, RCC_SUCCESS);
-                                               notify(NX_NOTIFY_GRAPHS_CHANGED);
+                                               notify(NX_NOTIFY_GRAPHS_DELETED, dwGraphId);
                                        }
                                        else
                                        {