[vlc-commits] Win32: Select the last DVD drive from prefs

Jean-Baptiste Kempf git at videolan.org
Thu Aug 23 13:23:28 CEST 2012


vlc | branch: master | Jean-Baptiste Kempf <jb at videolan.org> | Wed Aug 22 22:56:48 2012 +0200| [5f754e8b18e227f373d504c7ca6552d10eaa3142] | committer: Jean-Baptiste Kempf

Win32: Select the last DVD drive from prefs

Ref: #6719

Signed-off-by: Jean-Baptiste Kempf <jb at videolan.org>

> http://git.videolan.org/gitweb.cgi/vlc.git/?a=commit;h=5f754e8b18e227f373d504c7ca6552d10eaa3142
---

 modules/gui/qt4/components/open_panels.cpp |    4 ++++
 1 file changed, 4 insertions(+)

diff --git a/modules/gui/qt4/components/open_panels.cpp b/modules/gui/qt4/components/open_panels.cpp
index d4be603..95b6fa4 100644
--- a/modules/gui/qt4/components/open_panels.cpp
+++ b/modules/gui/qt4/components/open_panels.cpp
@@ -403,6 +403,10 @@ void DiscOpenPanel::onFocus()
         }
         SetErrorMode(oldMode);
     }
+
+    int temp = ui.deviceCombo->findData( config_GetPsz( p_intf, "dvd" ), Qt::UserRole, Qt::MatchStartsWith );
+    if( temp != -1 )
+        ui.deviceCombo->setCurrentIndex( temp );
 }
 #elif defined( __OS2__ ) /* Disc drives probing for OS/2 */
 void DiscOpenPanel::onFocus()



More information about the vlc-commits mailing list