Commit f81998fc authored by Adam Goins's avatar Adam Goins
Browse files

QView Avanced Tracking Tool now only displays correct columns. Fixes #5141

git-svn-id: http://subversion.wr.usgs.gov/repos/prog/isis3/trunk@8229 41f8697f-d340-4b68-9986-7bafba869bb8
parent a69ee766
Loading
Loading
Loading
Loading
+6 −1
Original line number Diff line number Diff line
@@ -198,6 +198,7 @@ namespace Isis {
        destinationColumn = startCol + i;
        p_table->insertColumn(startCol + i);
      }
      
      QTableWidgetItem *header = new QTableWidgetItem(htext);
      if (insertAt >= 0) {

@@ -345,11 +346,15 @@ namespace Isis {
   * This method checks to see if the table has been created. If
   * not it calls the createTable method before calling show.
   * 
   * @history 2017-10-06 Adam Goins - showTable() now calls syncColumns() after it calls
   *                        this->show() so that it hides the unselected columns appropriately.
   *                        Fixes #5141.
   *
   */
  void TableMainWindow::showTable() {
    syncColumns();
    if (p_table == NULL) createTable();
    this->show();
    syncColumns();
  }


+3 −0
Original line number Diff line number Diff line
@@ -41,6 +41,9 @@ namespace Isis {
  *   @history 2016-08-28 Kelvin Rodriguez - writeSettings now const to match parent and eliminate
  *                          hidden virtual overload warnings in clang. Part of porting to
  *                          OS X 10.11
  *   @history 2017-10-06 Adam Goins - showTable() now calls syncColumns() after it calls
  *                          this->show() so that it hides the unselected columns appropriately.
  *                          Fixes #5141.
  */
  class TableMainWindow : public MainWindow {
      Q_OBJECT