Handle all UIWidget descendents when requested to clear a table.

git-svn-id: http://yate.null.ro/svn/yate/trunk@3329 acf43c95-373e-0410-b603-e72c3f656dc1
This commit is contained in:
marian 2010-05-17 15:03:39 +00:00
parent 1b5fbe7f56
commit 3dbfb54a4a
1 changed files with 3 additions and 3 deletions

View File

@ -1705,6 +1705,9 @@ bool QtWindow::clearTable(const String& name)
QtWidget w(wndWidget(),name);
if (w.invalid())
return false;
UIWidget* uiw = w.uiWidget();
if (uiw)
return uiw->clearTable();
bool ok = true;
if (w.widget())
w->setUpdatesEnabled(false);
@ -1722,9 +1725,6 @@ bool QtWindow::clearTable(const String& name)
case QtWidget::ComboBox:
w.combo()->clear();
break;
case QtWidget::CustomTable:
ok = w.customTable()->clearTable();
break;
default:
ok = false;
}