Fix a couple of things

This commit is contained in:
Jonathan Corwin 2011-05-14 13:26:05 +01:00
parent 047287950c
commit 75414d2ba8
3 changed files with 5 additions and 4 deletions

View File

@ -485,7 +485,8 @@ class MediaManagerItem(QtGui.QWidget):
item.setData(QtCore.Qt.UserRole, QtCore.QVariant(item_id)) item.setData(QtCore.Qt.UserRole, QtCore.QVariant(item_id))
serviceItem = self.buildServiceItem(item) serviceItem = self.buildServiceItem(item)
if serviceItem: if serviceItem:
serviceItem.from_plugin = True if not item_id:
serviceItem.from_plugin = True
self.parent.liveController.addServiceItem(serviceItem) self.parent.liveController.addServiceItem(serviceItem)
def onAddClick(self): def onAddClick(self):

View File

@ -45,7 +45,7 @@ class PluginManager(object):
""" """
The constructor for the plugin manager. Passes the controllers on to The constructor for the plugin manager. Passes the controllers on to
the plugins for them to interact with via their ServiceItems. the plugins for them to interact with via their ServiceItems.
pluginmanager.py
``plugin_dir`` ``plugin_dir``
The directory to search for plugins. The directory to search for plugins.
""" """

View File

@ -56,7 +56,7 @@
<ul data-role="listview" data-inset="true"> <ul data-role="listview" data-inset="true">
</ul> </ul>
</div> </div>
<div data-role="footer" data-position="fixed" data-theme="b" class="ui-bar"> <div data-role="footer" data-theme="b" class="ui-bar">
<a href="#" id="service-blank" data-role="button" data-icon="blank">Blank</a> <a href="#" id="service-blank" data-role="button" data-icon="blank">Blank</a>
<a href="#" id="service-unblank" data-role="button" data-icon="unblank">Unblank</a> <a href="#" id="service-unblank" data-role="button" data-icon="unblank">Unblank</a>
<a href="#" id="service-refresh" data-role="button" data-icon="refresh">Refresh</a> <a href="#" id="service-refresh" data-role="button" data-icon="refresh">Refresh</a>
@ -73,7 +73,7 @@
<ul data-role="listview" data-inset="true"> <ul data-role="listview" data-inset="true">
</ul> </ul>
</div> </div>
<div data-role="footer" data-position="fixed" data-theme="b" class="ui-bar"> <div data-role="footer" data-theme="b" class="ui-bar">
<a href="#" id="controller-blank" data-role="button" data-icon="blank">Blank</a> <a href="#" id="controller-blank" data-role="button" data-icon="blank">Blank</a>
<a href="#" id="controller-unblank" data-role="button" data-icon="unblank">Unblank</a> <a href="#" id="controller-unblank" data-role="button" data-icon="unblank">Unblank</a>
<a href="#" id="controller-refresh" data-role="button" data-icon="refresh">Refresh</a> <a href="#" id="controller-refresh" data-role="button" data-icon="refresh">Refresh</a>