Commit 24cd531f authored by Tracie Sucharski's avatar Tracie Sucharski
Browse files

Fixed seg fault when saving a control network from the cneteditor app.

git-svn-id: http://subversion.wr.usgs.gov/repos/prog/isis3/trunk@8156 41f8697f-d340-4b68-9986-7bafba869bb8
parent 8162f309
Loading
Loading
Loading
Loading
+1 −0
Original line number Diff line number Diff line
@@ -703,6 +703,7 @@ namespace Isis {

  void CnetEditorWindow::networkLoaded(ControlNet *net, QString currentFile) {

    cnet = net;
    Control *control = new Control(net, currentFile);
    editorWidget = new CnetEditorWidget(control, FileName(
        "$HOME/.Isis/cneteditor/cneteditor.config").expanded());
+3 −0
Original line number Diff line number Diff line
@@ -32,6 +32,9 @@ namespace Isis {
   *   @history 2017-08-11 Christopher Combs - Changed networkLoaded() to take in a QString of
   *                           the current ControlNet file to create a Control object for
   *                           CnetEditorWidget's new constructor.
   *   @history 2017-09-19 Tracie Sucharski - Fixed bug introduced from last changes which caused a
   *                           seg fault when saving a control net.  In ::networkLoaded, cnet
   *                           (member variable) was deleted.
   */
  class CnetEditorWindow : public QMainWindow {
      Q_OBJECT