#include "recents.hpp"
#include "dialogs_provider.hpp"
+#include "menus.hpp"
#include <QList>
#include <QString>
playMRL( const QString & ) );
isActive = config_GetInt( p_intf, "qt-recentplay" );
- filter = new QRegExp(
- qfu( config_GetPsz( p_intf, "qt-recentplay-filter" ) ),
- Qt::CaseInsensitive );
+ char* psz_tmp = config_GetPsz( p_intf, "qt-recentplay-filter" );
+ filter = new QRegExp( psz_tmp, Qt::CaseInsensitive );
+ free( psz_tmp );
load();
if ( !isActive ) clear();
RecentsMRL::~RecentsMRL()
{
+ delete filter;
delete stack;
}
if( stack->size() > RECENTS_LIST_SIZE )
stack->takeLast();
}
- emit updated();
+ QVLCMenu::updateRecents( p_intf );
save();
}
if ( stack->isEmpty() )
return;
stack->clear();
- emit updated();
+ QVLCMenu::updateRecents( p_intf );
save();
}