From e9c12cbf78c6d2d40dc6cd1aa5f4a9a042629f7b Mon Sep 17 00:00:00 2001 From: Christophe Dumez Date: Mon, 30 Mar 2009 13:40:33 +0000 Subject: [PATCH] - Fix search item download when a column was sorted --- src/SearchTab.cpp | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/src/SearchTab.cpp b/src/SearchTab.cpp index 058c80345..31fc05100 100644 --- a/src/SearchTab.cpp +++ b/src/SearchTab.cpp @@ -146,7 +146,7 @@ void SearchTab::sortSearchListInt(int index, Qt::SortOrder sortOrder){ for(int row=0; rowinsertRow(SearchListModel->rowCount()); int sourceRow = lines[row].first; - for(int col=0; col<5; ++col){ + for(int col=0; col<6; ++col){ SearchListModel->setData(SearchListModel->index(nbRows_old+row, col), SearchListModel->data(SearchListModel->index(sourceRow, col))); SearchListModel->setData(SearchListModel->index(nbRows_old+row, col), SearchListModel->data(SearchListModel->index(sourceRow, col), Qt::ForegroundRole), Qt::ForegroundRole); } @@ -166,7 +166,7 @@ void SearchTab::sortSearchListString(int index, Qt::SortOrder sortOrder){ for(int row=0; rowinsertRow(SearchListModel->rowCount()); int sourceRow = lines[row].first; - for(int col=0; col<5; ++col){ + for(int col=0; col<6; ++col){ SearchListModel->setData(SearchListModel->index(nbRows_old+row, col), SearchListModel->data(SearchListModel->index(sourceRow, col))); SearchListModel->setData(SearchListModel->index(nbRows_old+row, col), SearchListModel->data(SearchListModel->index(sourceRow, col), Qt::ForegroundRole), Qt::ForegroundRole); }