Commit 14a0386f authored by hungdangquoc's avatar hungdangquoc
Browse files

[ADD #132] add default content for single-selector-content, when something happening

parent fa66a8dc
......@@ -92,10 +92,8 @@ int WColumnPropertyHandler::getfilterIndex( int index, std::string typeName )
size_t indexCounter = 0;
std::cout << "START " << singleSelectorContent.size() << " | " << typeName << std::endl;
for( std::vector<std::string>::iterator colName = singleSelectorContent.begin(); colName != singleSelectorContent.end(); colName++ )
{
std::cout << "DEBUG: " << refheader << " | " << *colName << " | " << indexCounter << std::endl << std::endl;
if( *colName == refheader )
{
return indexCounter;
......@@ -103,7 +101,6 @@ int WColumnPropertyHandler::getfilterIndex( int index, std::string typeName )
indexCounter++;
}
std::cout << "ENDE " << std::endl << std::endl;
return -1;
}
......@@ -119,6 +116,12 @@ WPropSelection WColumnPropertyHandler::addHeaderProperty( WColumnPropertyHandler
int indexSingleSelector = index < 0 ? -1 : getfilterIndex( index, type );
if( indexSingleSelector < 0 )
{
indexSingleSelector = index;
type = WDatatype::getDefault();
}
m_protonData->setStateIndex( columnName, index );
boost::shared_ptr< WItemSelection > possibleSelectionsUsingTypes = InitializeSelectionItem( type );
......
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