]> git.sesse.net Git - vlc/blobdiff - modules/gui/qt4/qt4.cpp
Qt4 - try to remember latest open disc path.
[vlc] / modules / gui / qt4 / qt4.cpp
index 47b1478415de6e4b4e62c1ab11e550208706238c..1391c2f27366862729c7c52dcec57c2cf2b21613 100644 (file)
@@ -5,6 +5,7 @@
  * $Id$
  *
  * Authors: ClĂ©ment Stenac <zorglub@videolan.org>
+ *          Jean-Baptiste Kempf <jb@videolan.org>
  *
  * This program is free software; you can redistribute it and/or modify
  * it under the terms of the GNU General Public License as published by
@@ -69,7 +70,9 @@ static void ShowDialog   ( intf_thread_t *, int, int, intf_dialog_args_t * );
 #define TITLE_LONGTEXT N_("Show the name of the song or video in the " \
                           "controler window title")
 
-#define FILEDIALOG_PATH_TEXT N_("Path to use in file dialog")
+#define FILEDIALOG_PATH_TEXT N_("Path to use in openfile dialog")
+
+#define DISCDIALOG_PATH_TEXT N_("Path to device to use in open disc dialog")
 
 #define NOTIFICATION_TEXT N_("Show notification popup on track change")
 #define NOTIFICATION_LONGTEXT N_( \
@@ -124,6 +127,10 @@ vlc_module_begin();
                 FILEDIALOG_PATH_TEXT, VLC_TRUE);
             change_autosave();
             change_internal();
+        add_string( "qt-discdialog-path", NULL, NULL, DISCDIALOG_PATH_TEXT,
+                DISCDIALOG_PATH_TEXT, VLC_TRUE);
+            change_autosave();
+            change_internal();
 
         add_bool( "qt-notification", VLC_TRUE, NULL, NOTIFICATION_TEXT,
                   NOTIFICATION_LONGTEXT, VLC_FALSE );
@@ -145,7 +152,6 @@ vlc_module_begin();
         set_callbacks( OpenDialogs, Close );
 vlc_module_end();
 
-
 /*****************************************************************************
  * Module callbacks
  *****************************************************************************/