[Libreoffice-commits] .: Branch 'refs/remotes/origin/master' - sc/source
August Sodora
augsod at kemper.freedesktop.org
Fri Nov 18 18:41:20 PST 2011
sc/source/ui/cctrl/checklistmenu.cxx | 4 ++++
1 file changed, 4 insertions(+)
New commits:
commit ac4b051e3247ccc9dfc40ca0699537ce4256de35
Author: Kohei Yoshida <kohei.yoshida at suse.com>
Date: Fri Nov 18 21:38:09 2011 -0500
Check the empty set state after launching.
Sometimes we get empty set especially when all rows are filtered out.
diff --git a/sc/source/ui/cctrl/checklistmenu.cxx b/sc/source/ui/cctrl/checklistmenu.cxx
index e96e6d4..9b23197 100644
--- a/sc/source/ui/cctrl/checklistmenu.cxx
+++ b/sc/source/ui/cctrl/checklistmenu.cxx
@@ -1220,6 +1220,10 @@ void ScCheckListMenuWindow::getResult(ResultType& rResult)
void ScCheckListMenuWindow::launch(const Rectangle& rRect)
{
packWindow();
+ if (!maConfig.mbAllowEmptySet)
+ // We need to have at least one member selected.
+ maBtnOk.Enable(maChecks.GetCheckedEntryCount() != 0);
+
StartPopupMode(rRect, (FLOATWIN_POPUPMODE_DOWN | FLOATWIN_POPUPMODE_GRABFOCUS));
}
More information about the Libreoffice-commits
mailing list