--- Vago/trunk/Vago/manualcommands.cpp 2013/03/31 19:02:16 771 +++ Vago/trunk/Vago/manualcommands.cpp 2016/09/17 13:32:34 1052 @@ -1,5 +1,6 @@ #include "manualcommands.h" #include "ui_manualcommands.h" +#include ManualCommands::ManualCommands(QWidget *parent) : QMainWindow(parent), @@ -9,6 +10,7 @@ ManualCommands::ManualCommands(QWidget * this->setAttribute(Qt::WA_DeleteOnClose,true); //destroy itself once finished. this->myProcess = new QProcess(); this->myProcess->setProcessChannelMode(QProcess::MergedChannels); + this->myProcess->setWorkingDirectory(UtilVago::getAppPath()); ui->leManualCommand->installEventFilter(this); this->nextInsertHistoryIdx=0; @@ -59,7 +61,9 @@ void ManualCommands::executeCommand(){ } } - this->myProcess->start(GlobalVars::OniSplitExeName+" "+ui->leManualCommand->text()); + QString var = UtilVago::getOniSplitExecutable() +" "+ui->leManualCommand->text(); + + this->myProcess->start(UtilVago::getOniSplitExecutable()+" "+ui->leManualCommand->text()); this->myProcess->waitForFinished(120000); //wait 2 minutes at maximum ui->ptOutput->appendPlainText("> "+command); ui->ptOutput->appendPlainText(this->myProcess->readAll()); @@ -134,7 +138,7 @@ bool ManualCommands::eventFilter(QObject if(this->searchHistoryIdx!=this->nextInsertHistoryIdx-1 && //for when it didn't the round !(this->nextInsertHistoryIdx==0 && this->searchHistoryIdx==this->limHistory-1)){ //for when it did the round this->searchHistoryIdx++; - } + } //rotate if(this->searchHistoryIdx < 0){