Skip to content

Commit

Permalink
Merge remote-tracking branch 'origin/SLE-15-GA' into merge_sle15
Browse files Browse the repository at this point in the history
  • Loading branch information
jreidinger committed Jun 11, 2018
2 parents c212365 + fd5efe0 commit 01ff687
Show file tree
Hide file tree
Showing 3 changed files with 10 additions and 4 deletions.
6 changes: 6 additions & 0 deletions package/yast2-ftp-server.changes
@@ -1,3 +1,9 @@
-------------------------------------------------------------------
Mon Jun 11 13:36:16 UTC 2018 - jreidinger@suse.com

- Do not modify value when Browse dialog is canceled (bsc#1041829)
- 4.1.1

-------------------------------------------------------------------
Thu Jun 7 09:22:47 UTC 2018 - jreidinger@suse.com

Expand Down
2 changes: 1 addition & 1 deletion package/yast2-ftp-server.spec
Expand Up @@ -17,7 +17,7 @@


Name: yast2-ftp-server
Version: 4.1.0
Version: 4.1.1
Release: 0

BuildRoot: %{_tmppath}/%{name}-%{version}-build
Expand Down
6 changes: 3 additions & 3 deletions src/include/ftp-server/wid_functions.rb
Expand Up @@ -319,7 +319,7 @@ def HandleBrowseAnon(_key, event)
button = Ops.get(event, "ID")
if button == "BrowseAnon"
val = UI.AskForExistingDirectory("/", _("Select directory"))
UI.ChangeWidget(Id("FtpDirAnon"), :Value, val)
UI.ChangeWidget(Id("FtpDirAnon"), :Value, val) if val
end
nil
end
Expand Down Expand Up @@ -355,7 +355,7 @@ def HandleBrowseLocal(_key, event)
button = Ops.get(event, "ID")
if button == "BrowseLocal"
val = UI.AskForExistingDirectory("/", _("Select directory"))
UI.ChangeWidget(Id("FtpDirLocal"), :Value, val)
UI.ChangeWidget(Id("FtpDirLocal"), :Value, val) if val
end
nil
end
Expand Down Expand Up @@ -1040,7 +1040,7 @@ def HandleBrowseCertFile(_key, event)
button = Ops.get(event, "ID")
if button == "BrowseCertFile"
val = UI.AskForExistingFile("/", "*.*", _("Select File"))
UI.ChangeWidget(Id("CertFile"), :Value, val)
UI.ChangeWidget(Id("CertFile"), :Value, val) if val
end

nil
Expand Down

0 comments on commit 01ff687

Please sign in to comment.