Commit fd37bc9a authored by Aaron J. Seigo's avatar Aaron J. Seigo

prevent bad data from the network

parent de88681a
...@@ -14,12 +14,7 @@ function setActive(data) ...@@ -14,12 +14,7 @@ function setActive(data)
plasmoid.update() plasmoid.update()
} }
print("EXAMINING FETCHER")
for (i in fetcher) { print("we have: " + i) }
print("EXAMINATION COMPLETE")
fetcher.fetch("http://127.0.0.1/activeprogress", setActive) fetcher.fetch("http://127.0.0.1/activeprogress", setActive)
//plasmoid.setAction('myAction', i18n('Toggle KDE Logo'), 'plasma')
//http://plasma.kde.org/activestops
plasmoid.paintInterface = function(painter, options, rect) plasmoid.paintInterface = function(painter, options, rect)
{ {
...@@ -31,7 +26,9 @@ plasmoid.paintInterface = function(painter, options, rect) ...@@ -31,7 +26,9 @@ plasmoid.paintInterface = function(painter, options, rect)
} }
for (i in active) { for (i in active) {
svg.paint(painter, svg.elementRect(active[i]), active[i]) if (svg.hasElement(active[i])) {
svg.paint(painter, svg.elementRect(active[i]), active[i])
}
} }
} }
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment