Confusing playlists save dialog (filetype combobox doesn't set type)

Bug #1197302 reported by xorik
24
This bug affects 3 people
Affects Status Importance Assigned to Milestone
Mixxx
Fix Released
Low
Dennis Rohner

Bug Description

Steps:
1. Select any playlist/crate
2. Click "Export playlist"
3. Select any file type, e.g. "Text CSV"
4. Save file

Expected result: CSV file
Actual result: M3U file

Same thing with others filetypes in combobox.

Gentoo x86_64, mixxx from trunk

Tags: playlist crate
Revision history for this message
Daniel Schürmann (daschuer) wrote :

Is it a bug or a feature? ;-) Ok, you have reported it, so it is a bug.

The combo box is part of the system file dialog. And it sets only a filter for the files in the view.
The type of play-list is selected by the file extension only.

To fix this issue, we have to write our own file save dialog, that may will feel foreign on some systems, or we can pop up a type selection box before showing the native file dialog.

summary: - Playlists always exports in m3u format (filetype combobox is useless)
+ Confusing playlists save dialog (filetype combobox doesn't set type)
Changed in mixxx:
importance: Undecided → Low
status: New → Confirmed
Revision history for this message
xorik (xor29a) wrote :

I'm try to write to export into traktor's NML playlist, and was totified: the combobox isn't working :)
Usualy in other software this combobox selects file type to export (e.g. OpenOffice or Audacity).

I think Qt must have something, to handle this combobox?

Revision history for this message
xorik (xor29a) wrote :

*notified

Revision history for this message
Daniel Schürmann (daschuer) wrote :

I would be glad if you could find a smart fix.

Revision history for this message
RJ Skerry-Ryan (rryan) wrote :

Dennis has a useful comment in Bug #1402841.

I agree that it's expected behavior that if you select a specific type from the drop-down then type a filename with no extension then we should append the one you selected to it.

"""
Under Ubuntu 14.04 Playlist Export function only exports m3u files.

This failure is due to QFileDialog::getSaveFileName only returns filename without extension under Linux.

This bug has been reported here: https://bugreports.qt-project.org/browse/QTBUG-27186

You can hack around this issue by defining a QString selfilter = tr("M3U Playlist (*.m3u)") which returns the appropiate filter (like Readable Text (*.txt)) after dialog is closed.

Afterwards extract the extension out of the string and append it to QString file_location in baseplaylistfeature.cpp in line 393.
Ugly hack tho :\
"""

Revision history for this message
Daniel Schürmann (daschuer) wrote :
Changed in mixxx:
assignee: nobody → Dennis Rohner (midzer)
milestone: none → 1.12.0
Revision history for this message
Dennis Rohner (midzer) wrote :

Can be set to "Fix commited" as PR is merged to master

Owen Williams (ywwg)
Changed in mixxx:
status: Confirmed → Fix Committed
RJ Skerry-Ryan (rryan)
Changed in mixxx:
status: Fix Committed → Fix Released
Revision history for this message
Sascha (lxndr71) wrote :

I have the same problem again with build 2.3 r7506 on Linux Mint 19.1

No matter what I choose, it only exports to m3u

Revision history for this message
Sascha (lxndr71) wrote :

I have to explicitly name the file .txt or .pls in the Filename field and set the filetype accordingly, else I only get m3u

Revision history for this message
Daniel Schürmann (daschuer) wrote :

Since this one is already released.
Can you file a new bug?
This way we can track the issue without messing around with the 2.0 changes.

Revision history for this message
Sascha (lxndr71) wrote :

o.k.

Revision history for this message
Swiftb0y (swiftb0y) wrote :

Mixxx now uses GitHub for bug tracking. This bug has been migrated to:
https://github.com/mixxxdj/mixxx/issues/7090

lock status: Metadata changes locked and limited to project staff
To post a comment you must log in.
This report contains Public information  
Everyone can see this information.

Duplicates of this bug

Other bug subscribers

Remote bug watches

Bug watches keep track of this bug in other bug trackers.