summaryrefslogtreecommitdiff
path: root/src/plugins/git
diff options
context:
space:
mode:
authorFriedemann Kleint <Friedemann.Kleint@nokia.com>2010-02-19 17:53:22 +0100
committerFriedemann Kleint <Friedemann.Kleint@nokia.com>2010-02-19 17:53:22 +0100
commit0dd30210dd9842b1db2822d6bc5b7ecd2c249048 (patch)
tree11dbb687988b695f7675deb2a437d34479aa2449 /src/plugins/git
parentb9b9f7526b0c21ef88867d1ce1dec806fec39860 (diff)
downloadqt-creator-0dd30210dd9842b1db2822d6bc5b7ecd2c249048.tar.gz
VCS[git]: Stashdialog: Fix broken remove.
Used the wrong indexes, set focus option.
Diffstat (limited to 'src/plugins/git')
-rw-r--r--src/plugins/git/stashdialog.cpp4
1 files changed, 3 insertions, 1 deletions
diff --git a/src/plugins/git/stashdialog.cpp b/src/plugins/git/stashdialog.cpp
index 3c5141ee27..f797a4481f 100644
--- a/src/plugins/git/stashdialog.cpp
+++ b/src/plugins/git/stashdialog.cpp
@@ -134,6 +134,8 @@ StashDialog::StashDialog(QWidget *parent) :
m_proxyModel->setFilterCaseSensitivity(Qt::CaseInsensitive);
ui->stashView->setModel(m_proxyModel);
ui->stashView->setSelectionMode(QAbstractItemView::MultiSelection);
+ ui->stashView->setAllColumnsShowFocus(true);
+ ui->stashView->setUniformRowHeights(true);
connect(ui->filterLineEdit, SIGNAL(filterChanged(QString)), m_proxyModel, SLOT(setFilterFixedString(QString)));
connect(ui->stashView->selectionModel(), SIGNAL(currentRowChanged(QModelIndex,QModelIndex)),
this, SLOT(enableButtons()));
@@ -212,7 +214,7 @@ void StashDialog::deleteSelection()
QStringList errors;
// Delete in reverse order as stashes rotate
for (int r = rows.size() - 1; r >= 0; r--)
- if (!gitClient()->synchronousStashRemove(m_repository, m_model->at(r).name, &errorMessage))
+ if (!gitClient()->synchronousStashRemove(m_repository, m_model->at(rows.at(r)).name, &errorMessage))
errors.push_back(errorMessage);
refresh(m_repository, true);
if (!errors.isEmpty())