Commit f0eac120 authored by Johnny Jazeix's avatar Johnny Jazeix

Solution (moche... a améliorer) qui corrige le bug (enfin chez moi) qui

empechait d'ouvrir plusieurs traces en cascade a partir des nouvelles 
traces et avec le chemin absolu.
parent 4283e26f
......@@ -209,10 +209,18 @@ void Interface_graphic::on_open_triggered(){
// for MACOS
char *return_value_of_getcwd = NULL;
return_value_of_getcwd = getcwd(current_dir, _CURRENT_DIR_SIZE);
#endif
#endif
program = QString(QString(current_dir)+QString(_core->get_progpath()+sizeof(char)));
#endif
#endif
// Il faut faire la différence des 2 !
string prog_path = _core->get_progpath();
if(prog_path.substr(0, strlen(current_dir)) == current_dir){
program = QString("/")+QString(_core->get_progpath()+sizeof(char));
}
else{
program = QString(QString(current_dir)+QString(_core->get_progpath()+sizeof(char)));
}
cout << "\n\nOuverture de : " << filename.toStdString() << "\nCurrent dir :" << current_dir << "\nChemin programme : " << _core->get_progpath() << "\nChemin pseudo absolu : " << program.toStdString()<< endl<<endl;
QProcess * new_process = new QProcess();
new_process->startDetached(program, arguments);
free (current_dir);
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment