void FileOpenPanel::browseFile()
{
QStringList files = QFileDialog::getOpenFileNames( this );
- foreach( const QString &file, files)
+ foreach( const QString &file, files )
{
QListWidgetItem *item =
new QListWidgetItem( toNativeSeparators( file ), ui.fileListWidg );
/* Function called by Open Dialog when clicke on Play/Enqueue */
void FileOpenPanel::accept()
{
- p_intf->p_sys->filepath = dialogBox->directory().absolutePath();
+ if( dialogBox )
+ p_intf->p_sys->filepath = dialogBox->directory().absolutePath();
ui.fileListWidg->clear();
}
{
char *psz_path = config_GetPsz( p_intf, "qt-filedialog-path" );
p_intf->p_sys->filepath =
- EMPTY_STR(psz_path) ? config_GetHomeDir() : qfu(psz_path);
+ EMPTY_STR( psz_path ) ? config_GetHomeDir() : qfu( psz_path );
free( psz_path );
}
/* Save the path */
config_PutPsz( p_intf, "qt-filedialog-path",
- qtu(p_intf->p_sys->filepath) );
+ qtu( p_intf->p_sys->filepath ) );
/* Delete the application automatically */
#ifdef Q_WS_X11
{
if ( !isActive || ( filter && filter->indexIn( mrl ) >= 0 ) )
return;
+
+ msg_Dbg( p_intf, "Adding a new MRL to recent ones: %s", qtu( mrl ) );
+
#ifdef WIN32
+ /* Add to the Windows 7 default list in taskbar */
SHAddToRecentDocs( 0x00000002 , qtu( mrl ) );
#endif
- msg_Dbg( p_intf, "Adding a new MRL to recent ones: %s", qtu( mrl ) );
+
int i_index = stack->indexOf( mrl );
if( 0 <= i_index )
{
}
QVLCMenu::updateRecents( p_intf );
save();
-
}
void RecentsMRL::clear()