Qt4: Use qfu for psz_homedir. Is it right ? Review please.
authorJean-Baptiste Kempf <jb@videolan.org>
Tue, 6 Mar 2007 23:08:19 +0000 (23:08 +0000)
committerJean-Baptiste Kempf <jb@videolan.org>
Tue, 6 Mar 2007 23:08:19 +0000 (23:08 +0000)
modules/gui/qt4/dialogs_provider.cpp

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