[prev in list] [next in list] [prev in thread] [next in thread]
List: kde-commits
Subject: KOFFICE_1_1_BRANCH: koffice/kword
From: Laurent Montel <montell () club-internet ! fr>
Date: 2001-11-12 7:43:10
[Download RAW message or body]
koffice/kword kwview.cc,1.365.2.2,1.365.2.3
Author: mlaurent
Mon Nov 12 07:43:00 UTC 2001
Modified Files:
kwview.cc
Log Message:
+++ kwview.cc 2001/11/12 07:41:57
@@ -753,7 +753,8 @@ void KWView::refreshCustomMenu()
}
}
}
- if(!lst.isEmpty())
+ bool state=!lst.isEmpty();
+ if(state)
actionInsertCustom->popupMenu()->insertSeparator();
act = new KAction( i18n("New..."), 0, this, SLOT( insertNewCustomVariable() ), \
actionCollection(), "custom-action" ); @@ -764,6 +765,7 @@ void \
KWView::refreshCustomMenu()
actionEditCustomVars = new KAction( i18n( "&Custom Variables..." ), 0,
this, SLOT( editCustomVars() ),
actionCollection(), "edit_customvars" );
+ actionEditCustomVars->setEnabled(state)
Backport, desactivate actionEditCustomVars when "lst" is empty
[prev in list] [next in list] [prev in thread] [next in thread]
Configure |
About |
News |
Add a list |
Sponsored by KoreLogic