Commit 6d9d1239 authored by Cole Neubauer's avatar Cole Neubauer
Browse files

Projects opened in the command line will no longer populate /tmp with project folders Fixes #5222

git-svn-id: http://subversion.wr.usgs.gov/repos/prog/isis3/branches/ipce@8303 41f8697f-d340-4b68-9986-7bafba869bb8
parent 01195f43
Loading
Loading
Loading
Loading
+8 −5
Original line number Diff line number Diff line
@@ -167,6 +167,7 @@ namespace Isis {
                                         arg( QApplication::applicationName() ) );
    }

    QCoreApplication* ipce_app = static_cast<QCoreApplication *>(directory.parent());

    try {
      QString tmpFolder = QDir::temp().absolutePath() + "/"
@@ -176,8 +177,10 @@ namespace Isis {
      m_projectRoot = new QDir(temp);
      m_projectPath = m_projectRoot->path();
      //qDebug()<<"          Create temp project";
      if (ipce_app->arguments().count() == 1) {
        createFolders();
      }
    }
    catch (IException &e) {
      throw IException(e, IException::Programmer, "Error creating project folders.", _FILEINFO_);
    }
+3 −0
Original line number Diff line number Diff line
@@ -190,6 +190,9 @@ namespace Isis {
   *   @history 2017-11-13 Makayla Shepherd - Modifying the name of an ImageList, ShapeList or 
   *                           BundeSolutionInfo on the ProjectTree now sets the project to 
   *                           not clean. Fixes #5174.
   *   @history 2017-11-15 Cole Neubauer - Added a check if there was an arg for the command line
   *                           to avoid creation of new temp project if a user is opening one from
   *                           the command line #5222
   */
  class Project : public QObject {
    Q_OBJECT