Index: src/atcore.h =================================================================== --- src/atcore.h +++ src/atcore.h @@ -293,7 +293,7 @@ * @param fileName: the gcode file to print. * @param sdPrint: set true to print fileName from Sd card */ - void print(const QString &fileName, bool sdPrint); + void print(const QString &fileName, bool sdPrint = false); /** * @brief Stop the Printer by empting the queue and aborting the print job (if running) Index: testclient/mainwindow.h =================================================================== --- testclient/mainwindow.h +++ testclient/mainwindow.h @@ -191,14 +191,6 @@ */ void sdDelPBClicked(); -signals: - /** - * @brief printFile emit ready to print a file to atcore - * @param fileName : the file to print - * @param sdPrint : True if file is on printers Sd Card - */ - void printFile(const QString &fileName, bool sdPrint = false); - private: Ui::MainWindow *ui; AtCore *core; Index: testclient/mainwindow.cpp =================================================================== --- testclient/mainwindow.cpp +++ testclient/mainwindow.cpp @@ -413,7 +413,7 @@ addLog(tr("No File Selected")); } else { addLog(tr("Print: %1").arg(fileName)); - emit(printFile(fileName)); + core->print(fileName); } break;