Commit 8a5bd42a authored by Locatelli's avatar Locatelli
Browse files

Add USR1 signal for re-activate plot already opened

parent 60086230
......@@ -26,6 +26,9 @@
#include "Trace.h"
#include "Error.h"
#include <sys/types.h>
#include <signal.h>
using namespace std;
using namespace cameo;
......@@ -245,6 +248,11 @@ void PlotManager::displayPropertyPlot(const proto::Message& message, const proto
//TODO show in front
// Send signal USR1 to process pid , waiting for the new version of cameo cpp api
DBGMSG("plot already opened : " << plotMessage.plotkey());
for(auto info : application::This::getServer().getApplicationInfos()) {
if (info.getId() == m_PlotsProcesses[plotMessage.plotkey()]->getId()) {
kill(info.getPid(), SIGUSR1);
}
}
}
}
......
......@@ -135,6 +135,7 @@ void PlotWindow::activateWindow() {
//// Show plot windows
////
try {
m_QtWindow->showNormal();
m_QtWindow->activateWindow();
} catch (...) {
Error("PlotWindow", "activateWindow", "Failed to activate window");
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment