Do not select first address automatically in the address book
authorWladimir J. van der Laan <laanwj@gmail.com>
Tue, 12 Jun 2012 08:46:24 +0000 (10:46 +0200)
committerLuke Dashjr <luke-jr+git@utopios.org>
Thu, 14 Jun 2012 17:11:26 +0000 (17:11 +0000)
This contributed to an accidental send (#1384), and has no clear advantage, better to disable it.

src/qt/addressbookpage.cpp

index 2c4407a..bd21103 100644 (file)
@@ -90,11 +90,6 @@ void AddressBookPage::setModel(AddressTableModel *model)
     connect(ui->tableView->selectionModel(), SIGNAL(selectionChanged(QItemSelection,QItemSelection)),
             this, SLOT(selectionChanged()));
 
-    if(mode == ForSending)
-    {
-        // Auto-select first row when in sending mode
-        ui->tableView->selectRow(0);
-    }
     selectionChanged();
 }