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 ) ...@@ -137,10 +137,6 @@ MainInterface::MainInterface( intf_thread_t *_p_intf ) : QVLCMW( _p_intf )
/* StatusBar Creation */ /* StatusBar Creation */
createStatusBar(); createStatusBar();
/* Recents menu updates */
CONNECT( RecentsMRL::getInstance( p_intf ), updated(),
this, updateRecentsMenu() );
/******************** /********************
* Input Manager * * Input Manager *
********************/ ********************/
...@@ -1140,11 +1136,3 @@ static int IntfShowCB( vlc_object_t *p_this, const char *psz_variable, ...@@ -1140,11 +1136,3 @@ static int IntfShowCB( vlc_object_t *p_this, const char *psz_variable,
return VLC_SUCCESS; return VLC_SUCCESS;
} }
/*****************************************************************************
* updateRecentsMenu: event called by RecentsMRL
*****************************************************************************/
void MainInterface::updateRecentsMenu()
{
QVLCMenu::updateRecents( p_intf );
}
...@@ -169,7 +169,6 @@ private slots: ...@@ -169,7 +169,6 @@ private slots:
void handleSystrayClick( QSystemTrayIcon::ActivationReason ); void handleSystrayClick( QSystemTrayIcon::ActivationReason );
void updateSystrayTooltipName( QString ); void updateSystrayTooltipName( QString );
void updateSystrayTooltipStatus( int ); void updateSystrayTooltipStatus( int );
void updateRecentsMenu();
signals: signals:
void askReleaseVideo( ); void askReleaseVideo( );
void askVideoToResize( unsigned int, unsigned int ); void askVideoToResize( unsigned int, unsigned int );
......
...@@ -24,6 +24,7 @@ ...@@ -24,6 +24,7 @@
#include "recents.hpp" #include "recents.hpp"
#include "dialogs_provider.hpp" #include "dialogs_provider.hpp"
#include "menus.hpp"
#include <QList> #include <QList>
#include <QString> #include <QString>
...@@ -76,7 +77,7 @@ void RecentsMRL::addRecent( const QString &mrl ) ...@@ -76,7 +77,7 @@ void RecentsMRL::addRecent( const QString &mrl )
if( stack->size() > RECENTS_LIST_SIZE ) if( stack->size() > RECENTS_LIST_SIZE )
stack->takeLast(); stack->takeLast();
} }
emit updated(); QVLCMenu::updateRecents( p_intf );
save(); save();
} }
...@@ -85,7 +86,7 @@ void RecentsMRL::clear() ...@@ -85,7 +86,7 @@ void RecentsMRL::clear()
if ( stack->isEmpty() ) if ( stack->isEmpty() )
return; return;
stack->clear(); stack->clear();
emit updated(); QVLCMenu::updateRecents( p_intf );
save(); save();
} }
......
...@@ -38,9 +38,6 @@ class RecentsMRL : public QObject ...@@ -38,9 +38,6 @@ class RecentsMRL : public QObject
{ {
Q_OBJECT Q_OBJECT
signals:
void updated();
public: public:
static RecentsMRL* getInstance( intf_thread_t* p_intf ) 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