Skip to content
Snippets Groups Projects
Commit e4666d15 authored by Alexandre Lision's avatar Alexandre Lision
Browse files

recordingmodel: replace url by string

Tuleap: #355
Change-Id: I72ebfb4c38052fd50a8b272a29690345f1da79a0
parent 227b95e3
No related branches found
No related tags found
No related merge requests found
......@@ -60,11 +60,12 @@
[self.muteDTMFButton setState:
Audio::Settings::instance().areDTMFMuted()?NSOnState:NSOffState];
if([[Media::RecordingModel::instance().recordPath().toNSURL() absoluteString] isEqualToString:@""]) {
NSArray * pathComponentArray = [self pathComponentArray];
if([Media::RecordingModel::instance().recordPath().toNSString() isEqualToString:@""]) {
NSArray* pathComponentArray = [self pathComponentArray];
[recordingsPathControl setPathComponentCells:pathComponentArray];
} else {
[recordingsPathControl setURL:Media::RecordingModel::instance().recordPath().toNSURL()];
[recordingsPathControl setURL:
[NSURL URLWithString:Media::RecordingModel::instance().recordPath().toNSString()]];
}
}
......@@ -81,7 +82,7 @@
- (IBAction)pathControlSingleClick:(id)sender {
// Select that chosen component of the path.
[self.recordingsPathControl setURL:[[self.recordingsPathControl clickedPathComponentCell] URL]];
Media::RecordingModel::instance().setRecordPath(QUrl::fromNSURL(self.recordingsPathControl.URL));
Media::RecordingModel::instance().setRecordPath(QString::fromNSString([self.recordingsPathControl.URL path]));
}
- (IBAction)chooseOutput:(id)sender {
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment