Browse Source

Fix inverted logic bug causing the Debug menu and toolbar buttons to get hidden during File/New/Project.

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

+ 6 - 0
ktigcc/NEWS

@@ -1,5 +1,11 @@
 This is a summary of the changes in KTIGCC since the first alpha release:
 
+KTIGCC 1.02 (2006-09-05):
+
+* Fixed inverted logic bug causing the Debug menu and toolbar buttons to get
+  hidden during File/New/Project.
+
+
 KTIGCC 1.01 (2006-08-21):
 
 * Find and Replace dialogs now remember history (but only for the current KTIGCC

+ 3 - 3
ktigcc/mainform.ui.h

@@ -1448,9 +1448,9 @@ void MainForm::clearProject()
   projectCompletion.clear();
   projectIsDirty=FALSE;
   projectNeedsRelink=FALSE;
-  menuBar()->setItemVisible(5,preferences.linkTarget==LT_NONE); //debugMenu
-  debugRunAction->setVisible(preferences.linkTarget==LT_NONE);
-  debugPauseAction->setVisible(preferences.linkTarget==LT_NONE);
+  menuBar()->setItemVisible(5,preferences.linkTarget!=LT_NONE); //debugMenu
+  debugRunAction->setVisible(preferences.linkTarget!=LT_NONE);
+  debugPauseAction->setVisible(preferences.linkTarget!=LT_NONE);
   updateLeftStatusLabel();
 }