Members of the KDE Community are recommended to subscribe to the kde-community mailing list at https://mail.kde.org/mailman/listinfo/kde-community to allow them to participate in important discussions and receive other important announcements

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.

BUG:389937
FIXED-IN:17.12.3
parent d0462709
......@@ -115,9 +115,12 @@ PlaylistBox::PlaylistBox(PlayerManager *player, QWidget *parent, QStackedWidget
m_viewModes.append(compactviewmode);
viewModeAction->addAction(QIcon::fromTheme(QStringLiteral("view-list-text")), compactviewmode->name());
// TODO: Fix the broken tree view mode
#if 0
TreeViewMode* treeviewmode = new TreeViewMode(this);
m_viewModes.append(treeviewmode);
viewModeAction->addAction(QIcon::fromTheme(QStringLiteral("view-list-tree")), treeviewmode->name());
#endif
CollectionList::initialize(this);
......@@ -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()
......
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