Commit 6d7ab12d authored by Felix Paul Kühne's avatar Felix Paul Kühne

ftp bookmarks: don't store items which don't have an address (closes #14826)

(cherry picked from commit fad950f2)
parent a096b16c
......@@ -142,8 +142,15 @@
- (IBAction)saveFTP:(id)sender {
[_saveServer addObject:self.serverAddressField.text];
- (IBAction)saveFTP:(id)sender
NSString *serverAddress = self.serverAddressField.text;
if (!serverAddress)
if (serverAddress.length < 1)
[_saveServer addObject:serverAddress];
[_saveLogin addObject:self.usernameField.text];
[_savePass addObject:self.passwordField.text];
NSUserDefaults *defaults = [NSUserDefaults standardUserDefaults];
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