Revert "rules must never be null"

This reverts commit 169a3d887d58aaaae7457a8ae3003478b78e8f3b.
This commit is contained in:
Luboš Luňák 2011-09-29 16:20:46 +02:00
parent 87a7c0f851
commit 2202be232b

View file

@ -389,9 +389,8 @@ static NET::WindowType comboToType(int val)
void RulesWidget::setRules(Rules* rules) void RulesWidget::setRules(Rules* rules)
{ {
Rules tmp; Rules tmp;
if (rules == NULL)
Q_ASSERT( rules ); rules = &tmp; // empty
description->setText(rules->description); description->setText(rules->description);
wmclass->setText(rules->wmclass); wmclass->setText(rules->wmclass);
whole_wmclass->setChecked(rules->wmclasscomplete); whole_wmclass->setChecked(rules->wmclasscomplete);