diff options
author | Jeix <devnull@localhost> | 2010-11-19 16:04:43 +0100 |
---|---|---|
committer | Jeix <devnull@localhost> | 2010-11-19 16:04:43 +0100 |
commit | e7ed9d55d271005a9d10a73c414e12f07cee1616 (patch) | |
tree | 15ec3e45643d128cf72847d827794e9b0eeb0bc1 /module/gui/PackageDock.py | |
parent | add_files rpc method (diff) | |
download | pyload-e7ed9d55d271005a9d10a73c414e12f07cee1616.tar.xz |
megaupload pw protected files, GUI fixes
Diffstat (limited to 'module/gui/PackageDock.py')
-rw-r--r-- | module/gui/PackageDock.py | 26 |
1 files changed, 5 insertions, 21 deletions
diff --git a/module/gui/PackageDock.py b/module/gui/PackageDock.py index e29c624a2..077abb44c 100644 --- a/module/gui/PackageDock.py +++ b/module/gui/PackageDock.py @@ -27,21 +27,6 @@ class NewPackageDock(QDockWidget): self.setWidget(self.widget) self.setAllowedAreas(Qt.RightDockWidgetArea|Qt.LeftDockWidgetArea) self.hide() - - self.currentPackId = None - - def fillWithPackage(self, packData=None): - if not packData: - self.widget.nameInput.setText("") - self.widget.passwordInput.setText("") - self.widget.box.clear() - self.currentPackId = None - return - - self.widget.box.setPlainText("\n".join(packData["links"])) - self.widget.nameInput.setText(packData["name"]) - self.widget.passwordInput.setText(packData["password"]) - self.currentPackId = packData["id"] def slotDone(self): text = str(self.widget.box.toPlainText()) @@ -54,11 +39,10 @@ class NewPackageDock(QDockWidget): if not line: continue lines.append(line) - self.emit(SIGNAL("done"), str(self.widget.nameInput.text()), lines, pw, self.currentPackId) - # self.widget.nameInput.setText("") - # self.widget.passwordInput.setText("") - # self.widget.box.clear() - #self.currentPackId = None + self.emit(SIGNAL("done"), str(self.widget.nameInput.text()), lines, pw) + self.widget.nameInput.setText("") + self.widget.passwordInput.setText("") + self.widget.box.clear() self.hide() class NewPackageWindow(QWidget): @@ -79,7 +63,7 @@ class NewPackageWindow(QWidget): self.nameInput = nameInput self.passwordInput = passwordInput - save = QPushButton(_("Save")) + save = QPushButton(_("Create")) layout.addWidget(nameLabel, 0, 0) layout.addWidget(nameInput, 0, 1) |