From d92cb87697409f93c477f90bea842ac48fba7643 Mon Sep 17 00:00:00 2001 From: stv Date: Tue, 10 Jan 2006 14:20:26 +0000 Subject: [PATCH] Hides the list if list items count less than 2 --- src/Qtx/QtxListResourceEdit.cxx | 2 ++ 1 file changed, 2 insertions(+) diff --git a/src/Qtx/QtxListResourceEdit.cxx b/src/Qtx/QtxListResourceEdit.cxx index 75e74e998..60a5fbe4c 100644 --- a/src/Qtx/QtxListResourceEdit.cxx +++ b/src/Qtx/QtxListResourceEdit.cxx @@ -168,6 +168,8 @@ void QtxListResourceEdit::updateState() myStack->show(); else myStack->hide(); + + myList->setShown( myList->count() > 1 ); } void QtxListResourceEdit::updateVisible() -- 2.39.2