From eb7edc5f28b721c20f3e8520d523dd3b458bbd95 Mon Sep 17 00:00:00 2001 From: Mitchell Livingston Date: Tue, 8 Aug 2006 21:10:13 +0000 Subject: [PATCH] Don't allow fields in info to be selected if blank. --- macosx/InfoWindowController.m | 14 ++++++++++++++ 1 file changed, 14 insertions(+) diff --git a/macosx/InfoWindowController.m b/macosx/InfoWindowController.m index ab97ea8c5..64232e32b 100644 --- a/macosx/InfoWindowController.m +++ b/macosx/InfoWindowController.m @@ -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