Commit e1cad5e8 authored by Bart Cerneels's avatar Bart Cerneels
Browse files

The correct edit() was not called, lacked polymorphism.

CCBUG: 308703
parent cc88eb13
......@@ -289,6 +289,7 @@ PlaylistBrowserCategory::createNewFolder()
}
QModelIndex idx = m_filterProxy->mapFromSource( m_byFolderProxy->createNewFolder( groupName ) );
m_playlistView->setCurrentIndex( idx );
//edit will fail: https://bugreports.qt-project.org/browse/QTBUG-26838
m_playlistView->edit( idx );
}
......
......@@ -41,6 +41,7 @@ namespace Playlists {
namespace PlaylistBrowserNS {
class PlaylistBrowserModel;
class PlaylistBrowserView;
class PlaylistBrowserCategory : public BrowserCategory
{
......@@ -87,7 +88,7 @@ private:
KActionMenu *m_providerMenu;
QMap<const Playlists::PlaylistProvider *, QAction *> m_providerActions;
QTreeView *m_playlistView;
PlaylistBrowserView *m_playlistView;
KAction *m_addFolderAction;
......
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