diff options
| author | trialuser02 <trialuser02@90c681e8-e032-0410-971d-27865f9a5e38> | 2019-09-08 11:49:28 +0000 |
|---|---|---|
| committer | trialuser02 <trialuser02@90c681e8-e032-0410-971d-27865f9a5e38> | 2019-09-08 11:49:28 +0000 |
| commit | 463f4e95cff0e100b4c8c8b5378cfe1b2604c138 (patch) | |
| tree | cb73da70a910165d5715d6fc20c11587454c4133 /src/plugins/General/streambrowser/streamwindow.cpp | |
| parent | 1e31fe896524513577911e382897b841e40a4814 (diff) | |
| download | qmmp-463f4e95cff0e100b4c8c8b5378cfe1b2604c138.tar.gz qmmp-463f4e95cff0e100b4c8c8b5378cfe1b2604c138.tar.bz2 qmmp-463f4e95cff0e100b4c8c8b5378cfe1b2604c138.zip | |
fixed possible regressions
git-svn-id: http://svn.code.sf.net/p/qmmp-dev/code/trunk/qmmp@9068 90c681e8-e032-0410-971d-27865f9a5e38
Diffstat (limited to 'src/plugins/General/streambrowser/streamwindow.cpp')
| -rw-r--r-- | src/plugins/General/streambrowser/streamwindow.cpp | 8 |
1 files changed, 4 insertions, 4 deletions
diff --git a/src/plugins/General/streambrowser/streamwindow.cpp b/src/plugins/General/streambrowser/streamwindow.cpp index d668068d4..fa90b8ec2 100644 --- a/src/plugins/General/streambrowser/streamwindow.cpp +++ b/src/plugins/General/streambrowser/streamwindow.cpp @@ -184,7 +184,7 @@ void StreamWindow::on_addPushButton_clicked() QList<PlayListTrack *> tracks; if(m_ui->tabWidget->currentIndex() == 0) { - QModelIndexList indexes = m_ui->favoritesTableView->selectionModel()->selectedRows(0); + const QModelIndexList indexes = m_ui->favoritesTableView->selectionModel()->selectedRows(0); for(const QModelIndex &index : qAsConst(indexes)) { QModelIndex source_index = m_favoritesFilterModel->mapToSource(index); @@ -197,7 +197,7 @@ void StreamWindow::on_addPushButton_clicked() } else { - QModelIndexList indexes = m_ui->icecastTableView->selectionModel()->selectedRows(0); + const QModelIndexList indexes = m_ui->icecastTableView->selectionModel()->selectedRows(0); for(const QModelIndex &index : qAsConst(indexes)) { QModelIndex source_index = m_iceCastFilterModel->mapToSource(index); @@ -234,7 +234,7 @@ void StreamWindow::execFavoritesMenu(const QPoint &pos) void StreamWindow::addToFavorites() { - QModelIndexList indexes = m_ui->icecastTableView->selectionModel()->selectedRows(0); + const QModelIndexList indexes = m_ui->icecastTableView->selectionModel()->selectedRows(0); for(const QModelIndex &index : qAsConst(indexes)) { QModelIndex source_index = m_iceCastFilterModel->mapToSource(index); @@ -307,7 +307,7 @@ void StreamWindow::removeFromFavorites() { if(m_ui->tabWidget->currentIndex() != 0) return; - QModelIndexList indexes = m_ui->favoritesTableView->selectionModel()->selectedRows(0); + const QModelIndexList indexes = m_ui->favoritesTableView->selectionModel()->selectedRows(0); QList<int> rows_to_remove; for(const QModelIndex &index : qAsConst(indexes)) { |
