Do not call selectedRow() at the end of tableSelectionChanged().

That line will cause infinite growing stack when Ctrl+A is pressed and
finally make konsole crash .

BUG: 281375
FIXED-IN: 4.8
This commit is contained in:
Jekyll Wu
2011-09-06 16:25:26 +08:00
parent 96c0f3a44e
commit e83bc55fa4

View File

@@ -306,7 +306,6 @@ void ManageProfilesDialog::tableSelectionChanged(const QItemSelection&)
// _ui->moveUpButton->setEnabled((selectedRows == 1) && (rowIndex > 0));
// _ui->moveDownButton->setEnabled((selectedRows == 1) && (rowIndex < (_sessionModel->rowCount()-1)));
_ui->sessionTable->selectRow(rowIndex);
}
void ManageProfilesDialog::deleteSelected()
{