diff --git a/core/src/main.cpp b/core/src/main.cpp index f203ed7..c734112 100644 --- a/core/src/main.cpp +++ b/core/src/main.cpp @@ -142,10 +142,10 @@ int main(int argc, char *argv[]) } } - MainWindow w; + MainWindow *w = new MainWindow(); if (port != "") { - w.setDevice(port); + w->setDevice(port); } if (plugin == "") { @@ -179,11 +179,11 @@ int main(int argc, char *argv[]) plugin = "/usr/share/emstudio/plugins/libfreeemsplugin.dylib"; } } - w.setPlugin(plugin); + w->setPlugin(plugin); if (autoconnect) { - w.connectToEms(); + w->connectToEms(); } - w.show(); + w->show(); return a.exec(); }