Procházet zdrojové kódy

Fix id attribute handling

Neal Wilson před 6 roky
rodič
revize
2e4e6afc0a
1 změnil soubory, kde provedl 2 přidání a 2 odebrání
  1. 2
    2
      src/roastcoloredit.w

+ 2
- 2
src/roastcoloredit.w Zobrazit soubor

137
 {
137
 {
138
     QBoxLayout *layout = qobject_cast<QBoxLayout *>(layoutStack->top());
138
     QBoxLayout *layout = qobject_cast<QBoxLayout *>(layoutStack->top());
139
     RoastColorEdit *edit = new RoastColorEdit;
139
     RoastColorEdit *edit = new RoastColorEdit;
140
-    if(element.hasAttribute("id"))
140
+    if(currentElement.hasAttribute("id"))
141
     {
141
     {
142
-        edit->setObjectName(element.attribute("id"));
142
+        edit->setObjectName(currentElement.attribute("id"));
143
     }
143
     }
144
     layout->addWidget(edit);
144
     layout->addWidget(edit);
145
 }
145
 }

Loading…
Zrušit
Uložit