Comment 5 for bug 1197302

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 :\
"""