Don't allow fields in info to be selected if blank.

This commit is contained in:
Mitchell Livingston 2006-08-08 21:10:13 +00:00
parent 251a05c305
commit eb7edc5f28
1 changed files with 14 additions and 0 deletions

View File

@ -134,6 +134,13 @@
[fDataLocationField setToolTip: nil];
[fDateStartedField setStringValue: @""];
//don't allow empty strings to be selected
[fTrackerField setSelectable: NO];
[fAnnounceField setSelectable: NO];
[fHashField setSelectable: NO];
[fTorrentLocationField setSelectable: NO];
[fDataLocationField setSelectable: NO];
[fStateField setStringValue: @""];
/*
[fPercentField setStringValue: @""];
@ -174,6 +181,13 @@
[fDataLocationField setStringValue: [[torrent dataLocation] stringByAbbreviatingWithTildeInPath]];
[fDataLocationField setToolTip: [torrent dataLocation]];
[fDateStartedField setObjectValue: [torrent date]];
//don't allow empty strings to be selected
[fTrackerField setSelectable: YES];
[fAnnounceField setSelectable: YES];
[fHashField setSelectable: YES];
[fTorrentLocationField setSelectable: YES];
[fDataLocationField setSelectable: YES];
}
//update stats and settings