Skip to content

Commit

Permalink
Merge pull request #45 from yast/sle12_sp4_merge
Browse files Browse the repository at this point in the history
Sle12 sp4 merge
  • Loading branch information
jreidinger committed Jun 11, 2018
2 parents 8ee666a + 2991468 commit fd5efe0
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.0.6

-------------------------------------------------------------------
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.0.5
Version: 4.0.6
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 fd5efe0

Please sign in to comment.