mirror of
https://github.com/tomahawk-player/tomahawk.git
synced 2025-08-30 09:10:53 +02:00
Set default type of echonest control so an empty control is valid (and ignored)
This commit is contained in:
@@ -181,6 +181,7 @@ Tomahawk::EchonestControl::updateWidgets()
|
|||||||
input->hide();
|
input->hide();
|
||||||
m_match = QWeakPointer< QWidget >( match );
|
m_match = QWeakPointer< QWidget >( match );
|
||||||
m_input = QWeakPointer< QWidget >( input );
|
m_input = QWeakPointer< QWidget >( input );
|
||||||
|
m_data.first = m_currentType;
|
||||||
} else if( selectedType() == "Artist Description" ) {
|
} else if( selectedType() == "Artist Description" ) {
|
||||||
m_currentType = Echonest::DynamicPlaylist::Description;
|
m_currentType = Echonest::DynamicPlaylist::Description;
|
||||||
|
|
||||||
@@ -199,6 +200,7 @@ Tomahawk::EchonestControl::updateWidgets()
|
|||||||
input->hide();
|
input->hide();
|
||||||
m_match = QWeakPointer< QWidget >( match );
|
m_match = QWeakPointer< QWidget >( match );
|
||||||
m_input = QWeakPointer< QWidget >( input );
|
m_input = QWeakPointer< QWidget >( input );
|
||||||
|
m_data.first = m_currentType;
|
||||||
} else if( selectedType() == "User Radio" ) {
|
} else if( selectedType() == "User Radio" ) {
|
||||||
m_currentType = Echonest::DynamicPlaylist::SourceCatalog;
|
m_currentType = Echonest::DynamicPlaylist::SourceCatalog;
|
||||||
|
|
||||||
@@ -246,6 +248,7 @@ Tomahawk::EchonestControl::updateWidgets()
|
|||||||
input->hide();
|
input->hide();
|
||||||
m_match = QWeakPointer< QWidget >( match );
|
m_match = QWeakPointer< QWidget >( match );
|
||||||
m_input = QWeakPointer< QWidget >( input );
|
m_input = QWeakPointer< QWidget >( input );
|
||||||
|
m_data.first = m_currentType;
|
||||||
} else if( selectedType() == "Variety" ) {
|
} else if( selectedType() == "Variety" ) {
|
||||||
m_currentType = Echonest::DynamicPlaylist::Variety;
|
m_currentType = Echonest::DynamicPlaylist::Variety;
|
||||||
|
|
||||||
@@ -266,6 +269,7 @@ Tomahawk::EchonestControl::updateWidgets()
|
|||||||
input->hide();
|
input->hide();
|
||||||
m_match = QWeakPointer< QWidget >( match );
|
m_match = QWeakPointer< QWidget >( match );
|
||||||
m_input = QWeakPointer< QWidget >( input );
|
m_input = QWeakPointer< QWidget >( input );
|
||||||
|
m_data.first = m_currentType;
|
||||||
} else if( selectedType() == "Adventurousness" ) {
|
} else if( selectedType() == "Adventurousness" ) {
|
||||||
m_currentType = Echonest::DynamicPlaylist::Adventurousness;
|
m_currentType = Echonest::DynamicPlaylist::Adventurousness;
|
||||||
|
|
||||||
@@ -287,6 +291,7 @@ Tomahawk::EchonestControl::updateWidgets()
|
|||||||
input->hide();
|
input->hide();
|
||||||
m_match = QWeakPointer< QWidget >( match );
|
m_match = QWeakPointer< QWidget >( match );
|
||||||
m_input = QWeakPointer< QWidget >( input );
|
m_input = QWeakPointer< QWidget >( input );
|
||||||
|
m_data.first = m_currentType;
|
||||||
} else if( selectedType() == "Tempo" ) {
|
} else if( selectedType() == "Tempo" ) {
|
||||||
m_currentType = Echonest::DynamicPlaylist::MinTempo;
|
m_currentType = Echonest::DynamicPlaylist::MinTempo;
|
||||||
|
|
||||||
|
Reference in New Issue
Block a user