Commit c6ea1279 authored by Jean-Baptiste Kempf's avatar Jean-Baptiste Kempf

Qt4: Use qfu for psz_homedir. Is it right ? Review please.

parent f7705ea7
...@@ -223,7 +223,7 @@ QStringList DialogsProvider::showSimpleOpen(QString help, bool all, ...@@ -223,7 +223,7 @@ QStringList DialogsProvider::showSimpleOpen(QString help, bool all,
return QFileDialog::getOpenFileNames( NULL, return QFileDialog::getOpenFileNames( NULL,
help.isNull() ? help.isNull() ?
qfu(I_OP_SEL_FILES ) : help, qfu(I_OP_SEL_FILES ) : help,
p_intf->p_libvlc->psz_homedir, qfu( p_intf->p_libvlc->psz_homedir ),
fileTypes ); fileTypes );
} }
...@@ -273,9 +273,9 @@ void DialogsProvider::savePlaylist() ...@@ -273,9 +273,9 @@ void DialogsProvider::savePlaylist()
{ {
QFileDialog *qfd = new QFileDialog( NULL, QFileDialog *qfd = new QFileDialog( NULL,
qtr("Choose a filename to save playlist"), qtr("Choose a filename to save playlist"),
p_intf->p_libvlc->psz_homedir, qfu( p_intf->p_libvlc->psz_homedir ),
qfu("XSPF playlist (*.xspf);; ") + qtr("XSPF playlist (*.xspf);; ") +
qfu("M3U playlist (*.m3u);; Any (*.*) ") ); qtr("M3U playlist (*.m3u);; Any (*.*) ") );
qfd->setFileMode( QFileDialog::AnyFile ); qfd->setFileMode( QFileDialog::AnyFile );
qfd->setAcceptMode( QFileDialog::AcceptSave ); qfd->setAcceptMode( QFileDialog::AcceptSave );
qfd->setConfirmOverwrite( true ); qfd->setConfirmOverwrite( true );
......
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