Skip to content

Commit

Permalink
Sorting view launch from edit for mac
Browse files Browse the repository at this point in the history
  • Loading branch information
RussellGarwood committed Feb 2, 2020
1 parent c396a16 commit 3550f08
Showing 1 changed file with 10 additions and 1 deletion.
11 changes: 10 additions & 1 deletion SPIERSedit/src/copyingimpl2_ouput.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -1371,7 +1371,16 @@ void CopyingImpl::ExportSPV_2(int flag) //0 for export, 1 for export and launch
#ifdef __APPLE__
//qDebug()<<"file:" + outputfile;
//QMessageBox::information(0,"","file:" + outputfile);
QDesktopServices::openUrl(QUrl("file:" + outputfile, QUrl::TolerantMode));
//QDesktopServices::openUrl(QUrl("file:" + outputfile, QUrl::TolerantMode));

//RJG - sorting luanch spiersview on MAC export.
//At first going to try same as linux - old code above
QString program = qApp->applicationFilePath();
program.replace("/SPIERSedit", "/SPIERSview");
QStringList arguments;
arguments << outputfile;
QProcess::startDetached (program, arguments, qApp->applicationDirPath());

#endif

#ifdef __linux__
Expand Down

0 comments on commit 3550f08

Please sign in to comment.