Settings: Fix "Choose what to sync" #4187

There was a duplicate connect() due to a merge problem (?) in
7e4c0bd515
This commit is contained in:
Christian Kamm 2015-11-24 13:41:00 +01:00
parent 7e56408331
commit 2982c79444

View file

@ -109,6 +109,8 @@ AccountSettings::AccountSettings(AccountState *accountState, QWidget *parent) :
connect(syncNowAction, SIGNAL(triggered()), SLOT(slotSyncCurrentFolderNow())); connect(syncNowAction, SIGNAL(triggered()), SLOT(slotSyncCurrentFolderNow()));
addAction(syncNowAction); addAction(syncNowAction);
// Expand already on single click
ui->_folderList->setExpandsOnDoubleClick(false);
connect(ui->_folderList, SIGNAL(clicked(const QModelIndex &)), connect(ui->_folderList, SIGNAL(clicked(const QModelIndex &)),
this, SLOT(slotFolderListClicked(const QModelIndex&))); this, SLOT(slotFolderListClicked(const QModelIndex&)));
@ -150,11 +152,6 @@ void AccountSettings::createAccountToolbox()
ui->_accountToolbox->setText(tr("Account") + QLatin1Char(' ')); ui->_accountToolbox->setText(tr("Account") + QLatin1Char(' '));
ui->_accountToolbox->setMenu(menu); ui->_accountToolbox->setMenu(menu);
ui->_accountToolbox->setPopupMode(QToolButton::InstantPopup); ui->_accountToolbox->setPopupMode(QToolButton::InstantPopup);
// Expand already on single click
ui->_folderList->setExpandsOnDoubleClick(false);
QObject::connect(ui->_folderList, SIGNAL(clicked(const QModelIndex &)),
this, SLOT(slotFolderListClicked(const QModelIndex&)));
} }
void AccountSettings::slotOpenAccountWizard() void AccountSettings::slotOpenAccountWizard()