diff --git a/src/internet/savedradio.cpp b/src/internet/savedradio.cpp index 0b4e22d91..9d40fb713 100644 --- a/src/internet/savedradio.cpp +++ b/src/internet/savedradio.cpp @@ -138,12 +138,12 @@ void SavedRadio::Edit() { return; int i = streams_.indexOf(Stream(QUrl(context_item->data(InternetModel::Role_Url).toUrl()))); - Stream& stream = streams_[i]; - stream.name_ = edit_dialog_->name(); - stream.url_ = edit_dialog_->url(); + Stream* stream = &streams_[i]; + stream->name_ = edit_dialog_->name(); + stream->url_ = edit_dialog_->url(); - context_item->setText(stream.name_); - context_item->setData(stream.url_, InternetModel::Role_Url); + context_item->setText(stream->name_); + context_item->setData(stream->url_, InternetModel::Role_Url); SaveStreams(); }