+ /* retrieve last known path used in file browsing */
+ char *psz_path = config_GetPsz( p_intf, "qt-filedialog-path" );
+ p_intf->p_sys->psz_filepath = EMPTY_STR( psz_path ) ? psz_path
+ : p_intf->p_libvlc->psz_homedir;
+
+#ifdef UPDATE_CHECK
+ if( config_GetInt( p_intf, "qt-updates-notif" ) )
+ {
+ int interval = config_GetInt( p_intf, "qt-updates-days" );
+ QSettings settings( "vlc", "vlc-qt-interface" );
+ if( QDate::currentDate() >
+ settings.value( "updatedate" ).toDate().addDays( interval ) )
+ {
+ msg_Dbg( p_intf, "Someone said I need to check updates" );
+ /* The constructor of the update Dialog will do the 1st request */
+ UpdateDialog::getInstance( p_intf );
+ settings.setValue( "updatedate", QDate::currentDate() );
+ }
+ }
+#endif
+