Skip to content

Commit 7e453b8

Browse files
committed
[webgui] special handling of first window connection
First connection has special role - it allows to change objects. Therefore if first connection reconnect - it has to keep this role
1 parent 560b645 commit 7e453b8

File tree

1 file changed

+4
-1
lines changed

1 file changed

+4
-1
lines changed

gui/webgui6/src/TWebCanvas.cxx

Lines changed: 4 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1155,7 +1155,10 @@ void TWebCanvas::ShowWebWindow(const ROOT::RWebDisplayArgs &args)
11551155
fWindow->SetCallBacks(
11561156
// connection
11571157
[this](unsigned connid) {
1158-
fWebConn.emplace_back(connid);
1158+
if (fWindow->GetConnectionId(0) == connid)
1159+
fWebConn.emplace(fWebConn.begin() + 1, connid);
1160+
else
1161+
fWebConn.emplace_back(connid);
11591162
CheckDataToSend(connid);
11601163
},
11611164
// data

0 commit comments

Comments
 (0)