summaryrefslogtreecommitdiff
path: root/sc/source/ui/cctrl
diff options
context:
space:
mode:
authorKohei Yoshida <kohei.yoshida@suse.com>2011-11-18 21:38:09 -0500
committerKohei Yoshida <kohei.yoshida@suse.com>2011-11-18 21:39:49 -0500
commitac4b051e3247ccc9dfc40ca0699537ce4256de35 (patch)
treef94c0828899a07233efd7b1e975905d8ac2c8299 /sc/source/ui/cctrl
parent833567fa698e92f3bb9b7ef929093faee59f65f0 (diff)
Check the empty set state after launching.
Sometimes we get empty set especially when all rows are filtered out.
Diffstat (limited to 'sc/source/ui/cctrl')
-rw-r--r--sc/source/ui/cctrl/checklistmenu.cxx4
1 files changed, 4 insertions, 0 deletions
diff --git a/sc/source/ui/cctrl/checklistmenu.cxx b/sc/source/ui/cctrl/checklistmenu.cxx
index e96e6d410b2b..9b2319735b81 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));
}