diff options
author | Caolán McNamara <caolanm@redhat.com> | 2017-04-10 10:29:53 +0100 |
---|---|---|
committer | Caolán McNamara <caolanm@redhat.com> | 2017-04-10 10:38:29 +0100 |
commit | 78acb910d2c1d69b03f701dc2dc1fdcbc020125f (patch) | |
tree | d45f4f4ced18731df358b9e4238ceb3d39844e87 | |
parent | f7b5db1f39f97bc14fea448a1995637c3937c931 (diff) |
the active document window should be radio entries
Change-Id: I90980345f4ea68dc15bacbf2c7abdf2d5d36a05d
-rw-r--r-- | sc/source/ui/navipi/content.cxx | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/sc/source/ui/navipi/content.cxx b/sc/source/ui/navipi/content.cxx index 657ddf6b351a..a1f9ba8d1dde 100644 --- a/sc/source/ui/navipi/content.cxx +++ b/sc/source/ui/navipi/content.cxx @@ -617,7 +617,7 @@ void ScContentTree::Command( const CommandEvent& rCEvt ) else aEntry += pParentWindow->aStrNotActive; ++i; - aDocMenu->InsertItem(i, aEntry, MenuItemBits::TEXT, OString("document") + OString::number(i)); + aDocMenu->InsertItem(i, aEntry, MenuItemBits::AUTOCHECK | MenuItemBits::RADIOCHECK, OString("document") + OString::number(i)); if ( !bHiddenDoc && aName == aManualDoc ) nPos = i; } @@ -625,7 +625,7 @@ void ScContentTree::Command( const CommandEvent& rCEvt ) } // "active window" ++i; - aDocMenu->InsertItem(i, pParentWindow->aStrActiveWin, MenuItemBits::TEXT, OString("document") + OString::number(i)); + aDocMenu->InsertItem(i, pParentWindow->aStrActiveWin, MenuItemBits::AUTOCHECK | MenuItemBits::RADIOCHECK, OString("document") + OString::number(i)); if (!bHiddenDoc && aManualDoc.isEmpty()) nPos = i; // hidden document @@ -634,7 +634,7 @@ void ScContentTree::Command( const CommandEvent& rCEvt ) OUString aEntry = aHiddenTitle; aEntry += pParentWindow->aStrHidden; ++i; - aDocMenu->InsertItem(i, aEntry, MenuItemBits::TEXT, OString("document") + OString::number(i)); + aDocMenu->InsertItem(i, aEntry, MenuItemBits::AUTOCHECK | MenuItemBits::RADIOCHECK, OString("document") + OString::number(i)); if (bHiddenDoc) nPos = i; } |