Commit 8439bc18 authored by Scott Wheeler's avatar Scott Wheeler

Don't prompt the user for where to put opened files if they didn't select

any.

svn path=/trunk/kdemultimedia/juk/; revision=207208
parent 5468d1d0
......@@ -243,6 +243,9 @@ QString PlaylistSplitter::extensionsString(const QStringList &extensions, const
void PlaylistSplitter::open(const QString &file)
{
if(file.isEmpty())
return;
if(visiblePlaylist() == collection ||
KMessageBox::questionYesNo(this, i18n("Do you want to add this item to the current list or to the collection list?"),
QString::null, KGuiItem(i18n("Current")), KGuiItem(i18n("Collection"))) == KMessageBox::No)
......@@ -253,6 +256,9 @@ void PlaylistSplitter::open(const QString &file)
void PlaylistSplitter::open(const QStringList &files)
{
if(files.isEmpty())
return;
if(visiblePlaylist() == collection ||
KMessageBox::questionYesNo(this, i18n("Do you want to add these items to the current list or to the collection list?"),
QString::null, KGuiItem(i18n("Current")), KGuiItem(i18n("Collection"))) == KMessageBox::No)
......
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