We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 92f53a6 commit 470f282Copy full SHA for 470f282
src/scratch/input.cpp
@@ -98,13 +98,13 @@ void Input::setValueBlockId(const std::string &id)
98
99
/*!
100
* Returns true if the input points to a dropdown menu.\n
101
- * (if type() == Type::Shadow and valueBlock() points to a block with a single field which does not point to an entity)
+ * (if valueBlock() points to a shadow block with a single field which does not point to an entity)
102
*/
103
bool Input::pointsToDropdownMenu() const
104
{
105
auto block = valueBlock();
106
107
- if ((impl->type != Type::Shadow) || !block)
+ if (!block || !block->shadow())
108
return false;
109
110
const auto &fields = block->fields();
0 commit comments