Browse Source

Switching from one file to another was causing the file to be marked dirty. Fix that.

git-svn-id: file:///var/svn/tigccpp/trunk@448 9552661e-59e3-4036-b4f2-dbe53926924f
kevinkofler 18 years ago
parent
commit
0d3a9bc7a9
1 changed files with 3 additions and 2 deletions
  1. 3 2
      ktigcc/mainform.ui.h

+ 3 - 2
ktigcc/mainform.ui.h

@@ -1435,9 +1435,10 @@ void MainForm::fileTreeClicked(QListViewItem *item)
       m_view->cursorPositionReal(&(static_cast<ListViewFile *>(currentListItem)->cursorLine),
                                  &(static_cast<ListViewFile *>(currentListItem)->cursorCol));
     }
-    
-    
   }
+  // Reset currentListItem so setting the text of the editor won't mark a
+  // file dirty.
+  currentListItem=NULL;
   if (IS_FOLDER(item)) {
     item->setPixmap(0,QPixmap::fromMimeSource("folder2.png"));
     fileNewFolderAction->setEnabled(TRUE);