1.1 --- a/mainwindow.cpp Mon Nov 20 12:12:05 2006 +0000
1.2 +++ b/mainwindow.cpp Thu Nov 23 13:53:08 2006 +0000
1.3 @@ -3161,7 +3161,6 @@
1.4 // updateActions is also called when NoteEditor is closed
1.5 actionViewToggleNoteEditor->setOn (textEditor->showWithMain());
1.6
1.7 - QAction *a;
1.8 if (me->getMapLinkColorHint()==HeadingColor)
1.9 actionFormatLinkColorHint->setOn(true);
1.10 else
1.11 @@ -3281,8 +3280,8 @@
1.12 actionEditPaste->setEnabled (true);
1.13 else
1.14 actionEditPaste->setEnabled (false);
1.15 - for (a=actionListBranches.first();a;a=actionListBranches.next())
1.16 - a->setEnabled(true);
1.17 + for (int i=0; i<actionListBranches.size(); ++i)
1.18 + actionListBranches.at(i)->setEnabled(true);
1.19 actionEditDelete->setEnabled (true);
1.20 switch (selection->getFrameType())
1.21 {
1.22 @@ -3317,8 +3316,8 @@
1.23 actionEditCopy->setEnabled (true);
1.24 actionEditCut->setEnabled (true);
1.25 actionEditPaste->setEnabled (false);
1.26 - for (a=actionListBranches.first();a;a=actionListBranches.next())
1.27 - a->setEnabled(false);
1.28 + for (int i=0; i<actionListBranches.size(); ++i)
1.29 + actionListBranches.at(i)->setEnabled(false);
1.30 actionEditDelete->setEnabled (true);
1.31 actionFormatHideLinkUnselected->setOn
1.32 ( selection->getHideLinkUnselected());
1.33 @@ -3331,8 +3330,8 @@
1.34 actionEditCopy->setEnabled (false);
1.35 actionEditCut->setEnabled (false);
1.36 actionEditPaste->setEnabled (false);
1.37 - for (a=actionListBranches.first();a;a=actionListBranches.next())
1.38 - a->setEnabled(false);
1.39 + for (int i=0; i<actionListBranches.size(); ++i)
1.40 + actionListBranches.at(i)->setEnabled(false);
1.41
1.42 actionEditToggleScroll->setEnabled (false);
1.43 actionEditOpenURL->setEnabled (false);