Kaydet (Commit) 6f98ef5c authored tarafından Bahadır Kandemir's avatar Bahadır Kandemir

Fixed apply button not working properly when unsetting attributes.

üst 585feaac
......@@ -296,9 +296,12 @@ class ObjectDialog(KDialog):
if self.unset and not self.grp.isChecked():
if not self.model.new:
self.unsetValues()
KDialog.accept(self)
else:
if self.getValues():
KDialog.accept(self)
else:
KDialog.accept(self)
def reject(self):
KDialog.reject(self)
......@@ -55,7 +55,7 @@ class textWidget(QLineEdit):
val = str(self.text())
if self.options.get("password", False):
val = saltedSHA(val)
if self.options.get("urlencode", False):
if "/" in val and self.options.get("urlencode", False):
url, args = val.rsplit("/", 1)
val = "%s/%s" % (url, urllib.urlencode({"x": args}).split("=", 1)[1])
return val
......
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