Преглед на файлове

Fix id attribute handling

Neal Wilson преди 6 години
родител
ревизия
2e4e6afc0a
променени са 1 файла, в които са добавени 2 реда и са изтрити 2 реда
  1. 2
    2
      src/roastcoloredit.w

+ 2
- 2
src/roastcoloredit.w Целия файл

@@ -137,9 +137,9 @@ else if(currentElement.tagName() == "roastcoloredit")
137 137
 {
138 138
     QBoxLayout *layout = qobject_cast<QBoxLayout *>(layoutStack->top());
139 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 144
     layout->addWidget(edit);
145 145
 }

Loading…
Отказ
Запис