mirror of
https://github.com/tomahawk-player/tomahawk.git
synced 2025-04-14 13:01:53 +02:00
Only emit a rename signal if we are the currently active view. Fixes TWK-202.
This commit is contained in:
parent
f03e74c777
commit
d61f38a206
@ -424,6 +424,7 @@ DynamicWidget::onDeleted()
|
||||
void
|
||||
DynamicWidget::onChanged()
|
||||
{
|
||||
if( !m_playlist.isNull() )
|
||||
if( !m_playlist.isNull() &&
|
||||
ViewManager::instance()->currentPage() == this )
|
||||
emit nameChanged( m_playlist->title() );
|
||||
}
|
||||
|
@ -24,6 +24,7 @@
|
||||
|
||||
#include "playlist/playlistproxymodel.h"
|
||||
#include "widgets/overlaywidget.h"
|
||||
#include "viewmanager.h"
|
||||
|
||||
using namespace Tomahawk;
|
||||
|
||||
@ -186,6 +187,7 @@ PlaylistView::onDeleted()
|
||||
void
|
||||
PlaylistView::onChanged()
|
||||
{
|
||||
if ( m_model && !m_model->playlist().isNull() )
|
||||
if ( m_model && !m_model->playlist().isNull() &&
|
||||
ViewManager::instance()->currentPage() == this )
|
||||
emit nameChanged( m_model->playlist()->title() );
|
||||
}
|
||||
|
Loading…
x
Reference in New Issue
Block a user