1
0
mirror of https://github.com/tomahawk-player/tomahawk.git synced 2025-08-12 09:04:33 +02:00

act dumber

This commit is contained in:
Leo Franchi
2011-01-23 10:54:21 -05:00
parent 77120e8ac8
commit 1f3dd091a2

View File

@@ -32,6 +32,7 @@
#include "audio/audioengine.h"
#include "ReadOrWriteWidget.h"
#include "CollapsibleControls.h"
#include "DynamicControlWrapper.h"
using namespace Tomahawk;
@@ -266,10 +267,6 @@ void DynamicWidget::onDemandFailed()
void
DynamicWidget::controlsChanged()
{
// save the current playlist
if( m_controls->controls().size() == 1 && m_playlist->generator()->controls().at( 0 )->input() == QString() ) { // if there is only 1 empty control, remove it as it's the default created one
m_playlist->generator()->removeControl( m_playlist->generator()->controls().last() );
}
m_playlist->createNewRevision();
}