Skip to content

Commit

Permalink
Fix Issue escoz#617: QRadioElement selected item not appearing as def…
Browse files Browse the repository at this point in the history
…ault value

Fix Issue escoz#617: QRadioElement selected item not appearing as default
value
  • Loading branch information
kayrules committed Nov 27, 2013
1 parent 2ac596f commit 9cdd95f
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions quickdialog/QRadioElement.m
Original file line number Diff line number Diff line change
Expand Up @@ -75,15 +75,15 @@ - (QEntryElement *)init {

- (QRadioElement *)initWithItems:(NSArray *)stringArray selected:(NSInteger)selected {
self = [self initWithItems:stringArray selected:selected title:nil];
_selected = -1;
_selected = selected;
return self;
}


- (QRadioElement *)initWithDict:(NSDictionary *)valuesDictionary selected:(int)selected title:(NSString *)title {
self = [self initWithItems:valuesDictionary.allKeys selected:(NSUInteger) selected];
_values = valuesDictionary.allValues;
_selected = -1;
_selected = selected;
self.title = title;
return self;
}
Expand Down

0 comments on commit 9cdd95f

Please sign in to comment.