Qt: Forgotten native separators in open panel (cosmetic) and in preferences.
authorJean-Baptiste Kempf <jb@videolan.org>
Thu, 18 Sep 2008 23:15:55 +0000 (16:15 -0700)
committerJean-Baptiste Kempf <jb@videolan.org>
Fri, 19 Sep 2008 00:59:18 +0000 (17:59 -0700)
Should repair skins options.

modules/gui/qt4/components/open_panels.cpp
modules/gui/qt4/components/preferences_widgets.cpp

index 53c3c9f..5ce8a1b 100644 (file)
@@ -408,7 +408,7 @@ void DiscOpenPanel::browseDevice()
     QString dir = QFileDialog::getExistingDirectory( 0,
             qtr( I_DEVICE_TOOLTIP ) );
     if (!dir.isEmpty()) {
-        ui.deviceCombo->setEditText( dir );
+        ui.deviceCombo->setEditText( toNativeSeparators( dir ) );
     }
     updateMRL();
 }
index 76db951..d6fe01b 100644 (file)
@@ -337,7 +337,7 @@ void DirectoryConfigControl::updateField()
                       QFileDialog::ShowDirsOnly |
                         QFileDialog::DontResolveSymlinks );
     if( dir.isNull() ) return;
-    text->setText( dir );
+    text->setText( toNativeSeparators( dir ) );
 }
 
 #if 0