Skip to content

Commit 470f282

Browse files
committed
fix #549: Fix dropdown menu detection logic
1 parent 92f53a6 commit 470f282

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

src/scratch/input.cpp

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -98,13 +98,13 @@ void Input::setValueBlockId(const std::string &id)
9898

9999
/*!
100100
* 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)
101+
* (if valueBlock() points to a shadow block with a single field which does not point to an entity)
102102
*/
103103
bool Input::pointsToDropdownMenu() const
104104
{
105105
auto block = valueBlock();
106106

107-
if ((impl->type != Type::Shadow) || !block)
107+
if (!block || !block->shadow())
108108
return false;
109109

110110
const auto &fields = block->fields();

0 commit comments

Comments
 (0)