diff -r a4532e5c2ce3 -r 1c8ff1928b97 mainwindow.cpp --- a/mainwindow.cpp Mon Nov 20 12:12:05 2006 +0000 +++ b/mainwindow.cpp Thu Nov 23 13:53:08 2006 +0000 @@ -3161,7 +3161,6 @@ // updateActions is also called when NoteEditor is closed actionViewToggleNoteEditor->setOn (textEditor->showWithMain()); - QAction *a; if (me->getMapLinkColorHint()==HeadingColor) actionFormatLinkColorHint->setOn(true); else @@ -3281,8 +3280,8 @@ actionEditPaste->setEnabled (true); else actionEditPaste->setEnabled (false); - for (a=actionListBranches.first();a;a=actionListBranches.next()) - a->setEnabled(true); + for (int i=0; isetEnabled(true); actionEditDelete->setEnabled (true); switch (selection->getFrameType()) { @@ -3317,8 +3316,8 @@ actionEditCopy->setEnabled (true); actionEditCut->setEnabled (true); actionEditPaste->setEnabled (false); - for (a=actionListBranches.first();a;a=actionListBranches.next()) - a->setEnabled(false); + for (int i=0; isetEnabled(false); actionEditDelete->setEnabled (true); actionFormatHideLinkUnselected->setOn ( selection->getHideLinkUnselected()); @@ -3331,8 +3330,8 @@ actionEditCopy->setEnabled (false); actionEditCut->setEnabled (false); actionEditPaste->setEnabled (false); - for (a=actionListBranches.first();a;a=actionListBranches.next()) - a->setEnabled(false); + for (int i=0; isetEnabled(false); actionEditToggleScroll->setEnabled (false); actionEditOpenURL->setEnabled (false);