Commit b7ae3fa7 authored by Michael Pyne's avatar Michael Pyne

Fix Create Playlist from Selected Items to actually ask the user for the

playlist name.  This uses a string which was already in JuK, so this shouldn't
affect i18n.

svn path=/trunk/kdemultimedia/juk/; revision=335394
parent 438506af
...@@ -22,6 +22,7 @@ ...@@ -22,6 +22,7 @@
#include <kpopupmenu.h> #include <kpopupmenu.h>
#include <klocale.h> #include <klocale.h>
#include <kdebug.h> #include <kdebug.h>
#include <kinputdialog.h>
#include <qheader.h> #include <qheader.h>
#include <qcursor.h> #include <qcursor.h>
...@@ -1864,6 +1865,14 @@ void Playlist::slotToggleColumnVisible(int column) ...@@ -1864,6 +1865,14 @@ void Playlist::slotToggleColumnVisible(int column)
SharedSettings::instance()->toggleColumnVisible(column - columnOffset()); SharedSettings::instance()->toggleColumnVisible(column - columnOffset());
} }
void Playlist::slotCreateGroup()
{
QString name = m_collection->playlistNameDialog(i18n("Create New Playlist"));
if(!name.isEmpty())
new Playlist(m_collection, selectedItems(), name);
}
void Playlist::slotColumnSizeChanged(int column, int, int newSize) void Playlist::slotColumnSizeChanged(int column, int, int newSize)
{ {
m_widthsDirty = true; m_widthsDirty = true;
......
...@@ -535,7 +535,7 @@ private slots: ...@@ -535,7 +535,7 @@ private slots:
/** /**
* Prompts the user to create a new playlist with from the selected items. * Prompts the user to create a new playlist with from the selected items.
*/ */
void slotCreateGroup() { new Playlist(m_collection, selectedItems()); } void slotCreateGroup();
/** /**
* This slot is called when the user drags the slider in the listview header * This slot is called when the user drags the slider in the listview header
......
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