summaryrefslogtreecommitdiffstats
path: root/module/gui/ConnectionManager.py
diff options
context:
space:
mode:
authorGravatar RaNaN <Mast3rRaNaN@hotmail.de> 2010-09-04 22:09:00 +0200
committerGravatar RaNaN <Mast3rRaNaN@hotmail.de> 2010-09-04 22:09:00 +0200
commitc62e04da03e34c9a0ee16c3f47e9f86209a1eb65 (patch)
tree231133520a0b3dcdc0b5276df0e5e841ba392a0c /module/gui/ConnectionManager.py
parentnetload fix (diff)
downloadpyload-c62e04da03e34c9a0ee16c3f47e9f86209a1eb65.tar.xz
internal core feature
Diffstat (limited to 'module/gui/ConnectionManager.py')
-rw-r--r--module/gui/ConnectionManager.py15
1 files changed, 10 insertions, 5 deletions
diff --git a/module/gui/ConnectionManager.py b/module/gui/ConnectionManager.py
index d96916338..2a63698a0 100644
--- a/module/gui/ConnectionManager.py
+++ b/module/gui/ConnectionManager.py
@@ -126,10 +126,14 @@ class ConnectionManager(QWidget):
self.emit(SIGNAL("removeConnection"), data)
def slotConnect(self):
- item = self.connList.currentItem()
- data = item.data(Qt.UserRole).toPyObject()
- data = self.cleanDict(data)
- self.emit(SIGNAL("connect"), data)
+ if self.internal.checkState() == 2:
+ data = {"type": "internal"}
+ self.emit(SIGNAL("connect"), data)
+ else:
+ item = self.connList.currentItem()
+ data = item.data(Qt.UserRole).toPyObject()
+ data = self.cleanDict(data)
+ self.emit(SIGNAL("connect"), data)
def cleanDict(self, data):
tmp = {}
@@ -154,7 +158,8 @@ class ConnectionManager(QWidget):
self.setDefault(data, False)
def slotInternal(self):
- self.connList.clearSelection()
+ if self.internal.checkState() == 2:
+ self.connList.clearSelection()
def setDefault(self, data, state):
data = self.cleanDict(data)