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

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
viewModeAction->addAction(QIcon::fromTheme(QStringLiteral("view-list-text")), compactviewmode->name());
// TODO: Fix the broken tree view mode
#if 0
TreeViewMode* treeviewmode = new TreeViewMode(this);
viewModeAction->addAction(QIcon::fromTheme(QStringLiteral("view-list-tree")), treeviewmode->name());
......@@ -300,6 +303,11 @@ void PlaylistBox::readConfig()
KConfigGroup config(KSharedConfig::openConfig(), "PlaylistBox");
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()
Supports Markdown
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