Commit 5982cede authored by Michael Pyne's avatar Michael Pyne

Avoid crash on tree view mode by disabling tree view mode :(

I can't decipher the brokenness here in a way that will lead to a quick
fix, so disable the broken feature for now to avoid causing needless
crashes for a feature that currently doesn't work at all.

parent d0462709
...@@ -115,9 +115,12 @@ PlaylistBox::PlaylistBox(PlayerManager *player, QWidget *parent, QStackedWidget ...@@ -115,9 +115,12 @@ PlaylistBox::PlaylistBox(PlayerManager *player, QWidget *parent, QStackedWidget
m_viewModes.append(compactviewmode); m_viewModes.append(compactviewmode);
viewModeAction->addAction(QIcon::fromTheme(QStringLiteral("view-list-text")), compactviewmode->name()); viewModeAction->addAction(QIcon::fromTheme(QStringLiteral("view-list-text")), compactviewmode->name());
// TODO: Fix the broken tree view mode
#if 0
TreeViewMode* treeviewmode = new TreeViewMode(this); TreeViewMode* treeviewmode = new TreeViewMode(this);
m_viewModes.append(treeviewmode); m_viewModes.append(treeviewmode);
viewModeAction->addAction(QIcon::fromTheme(QStringLiteral("view-list-tree")), treeviewmode->name()); viewModeAction->addAction(QIcon::fromTheme(QStringLiteral("view-list-tree")), treeviewmode->name());
CollectionList::initialize(this); CollectionList::initialize(this);
...@@ -300,6 +303,11 @@ void PlaylistBox::readConfig() ...@@ -300,6 +303,11 @@ void PlaylistBox::readConfig()
{ {
KConfigGroup config(KSharedConfig::openConfig(), "PlaylistBox"); KConfigGroup config(KSharedConfig::openConfig(), "PlaylistBox");
m_viewModeIndex = config.readEntry("ViewMode", 0); m_viewModeIndex = config.readEntry("ViewMode", 0);
// TODO Restore ability to use Tree View once fixed.
if(m_viewModeIndex == 2) {
m_viewModeIndex = 0;
} }
void PlaylistBox::saveConfig() void PlaylistBox::saveConfig()
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment