diff options
author | Thomas Arnhold <thomas@arnhold.org> | 2014-08-24 02:35:16 +0200 |
---|---|---|
committer | Thomas Arnhold <thomas@arnhold.org> | 2014-08-24 05:27:24 +0200 |
commit | d3ebe3e3dcdb89b7713641241f7d431352ba8c5f (patch) | |
tree | ceb50ff01397bad5fb75930e3206883f5dc421c9 /sfx2 | |
parent | 3156948d813f94c00ac87f80c5850f9f67b42318 (diff) |
Sidebar: Use proper default value for Deck
gsDefaultDeckId is "PropertyDeck". Deck "default" does not exist
and triggers a fallback, which is the first Deck in the list, which is
"PropertyDeck", too.
Change-Id: If2daa53d002c6547cc5f6fbed1408719c10b149d
Diffstat (limited to 'sfx2')
-rw-r--r-- | sfx2/source/sidebar/SidebarController.cxx | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/sfx2/source/sidebar/SidebarController.cxx b/sfx2/source/sidebar/SidebarController.cxx index 7d7141b1ae2b..b4ae71a40f67 100644 --- a/sfx2/source/sidebar/SidebarController.cxx +++ b/sfx2/source/sidebar/SidebarController.cxx @@ -154,7 +154,7 @@ SidebarController::SidebarController ( if (mxReadOnlyModeDispatch.is()) mxReadOnlyModeDispatch->addStatusListener(this, aURL); - SwitchToDeck(OUString("default")); + SwitchToDeck(gsDefaultDeckId); WeakReference<SidebarController> xWeakController (this); maSidebarControllerContainer.insert( @@ -476,7 +476,7 @@ void SidebarController::UpdateConfigurations (void) // Find the new deck. By default that is the same as the old // one. If that is not set or not enabled, then choose the - // first enabled deck. + // first enabled deck (which is PropertyDeck). OUString sNewDeckId; for (ResourceManager::DeckContextDescriptorContainer::const_iterator iDeck(aDecks.begin()), |