瀏覽代碼

Fix NewNode initialisation in the win ui

oz123 10 年之前
父節點
當前提交
654360e115
共有 1 個文件被更改,包括 5 次插入1 次删除
  1. 5 1
      pwman/ui/win.py

+ 5 - 1
pwman/ui/win.py

@@ -75,7 +75,11 @@ class PwmanCliWinNew(PwmanCliNew):
                                              special_signs=special_chars)
             url = self.get_url()
             notes = self.get_notes()
-            node = NewNode(username, password, url, notes)
+            node = NewNode()
+            node.username = username
+            node.password = password
+            node.url = url
+            node.notes = notes
             tags = self.get_tags()
             node.tags = tags
             self._db.addnodes([node])