This might be all it takes to prevent the desync. needs local/remote testing. Also toggle 2nd barrel state on 0 movement
#include <QtGui/QApplication>
#include "editor.h"
int main(int argc, char *argv[])
{
QApplication a(argc, argv);
editor w;
w.show();
return a.exec();
}