Revert "rules must never be null"
This reverts commit 169a3d887d58aaaae7457a8ae3003478b78e8f3b.
This commit is contained in:
parent
87a7c0f851
commit
2202be232b
1 changed files with 2 additions and 3 deletions
|
@ -389,9 +389,8 @@ static NET::WindowType comboToType(int val)
|
|||
void RulesWidget::setRules(Rules* rules)
|
||||
{
|
||||
Rules tmp;
|
||||
|
||||
Q_ASSERT( rules );
|
||||
|
||||
if (rules == NULL)
|
||||
rules = &tmp; // empty
|
||||
description->setText(rules->description);
|
||||
wmclass->setText(rules->wmclass);
|
||||
whole_wmclass->setChecked(rules->wmclasscomplete);
|
||||
|
|
Loading…
Reference in a new issue