+void Principal::on_btn_activar_clicked()
+{
+ if ((conexion == NULL) || (last_selected == NULL)) return;
+
+ PlaQui::Server::Command c("plant", "set");
+ c.add_arg("default");
+ c.add_arg(last_selected->get_name());
+ c.add_arg("open");
+
+ if (last_selected->get_open())
+ c.add_arg("false");
+ else
+ c.add_arg("true");
+
+ conexion->send(c);
+}
+