Commit 610eb037 authored by Jean-Baptiste Kempf's avatar Jean-Baptiste Kempf

Qt: no need to go through the MainInterface to forward the signals about recentItems.

Signed-off-by: default avatarJean-Baptiste Kempf <jb@videolan.org>
parent c7fb55ac
......@@ -137,10 +137,6 @@ MainInterface::MainInterface( intf_thread_t *_p_intf ) : QVLCMW( _p_intf )
/* StatusBar Creation */
createStatusBar();
/* Recents menu updates */
CONNECT( RecentsMRL::getInstance( p_intf ), updated(),
this, updateRecentsMenu() );
/********************
* Input Manager *
********************/
......@@ -1140,11 +1136,3 @@ static int IntfShowCB( vlc_object_t *p_this, const char *psz_variable,
return VLC_SUCCESS;
}
/*****************************************************************************
* updateRecentsMenu: event called by RecentsMRL
*****************************************************************************/
void MainInterface::updateRecentsMenu()
{
QVLCMenu::updateRecents( p_intf );
}
......@@ -169,7 +169,6 @@ private slots:
void handleSystrayClick( QSystemTrayIcon::ActivationReason );
void updateSystrayTooltipName( QString );
void updateSystrayTooltipStatus( int );
void updateRecentsMenu();
signals:
void askReleaseVideo( );
void askVideoToResize( unsigned int, unsigned int );
......
......@@ -24,6 +24,7 @@
#include "recents.hpp"
#include "dialogs_provider.hpp"
#include "menus.hpp"
#include <QList>
#include <QString>
......@@ -76,7 +77,7 @@ void RecentsMRL::addRecent( const QString &mrl )
if( stack->size() > RECENTS_LIST_SIZE )
stack->takeLast();
}
emit updated();
QVLCMenu::updateRecents( p_intf );
save();
}
......@@ -85,7 +86,7 @@ void RecentsMRL::clear()
if ( stack->isEmpty() )
return;
stack->clear();
emit updated();
QVLCMenu::updateRecents( p_intf );
save();
}
......
......@@ -38,9 +38,6 @@ class RecentsMRL : public QObject
{
Q_OBJECT
signals:
void updated();
public:
static RecentsMRL* getInstance( intf_thread_t* p_intf )
{
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment