Commit 5a7b517a authored by Christian Stenger's avatar Christian Stenger

CPaster: Fix failing slot connections...

...and resulting failing fetch attempts.

Task-number: QTCREATORBUG-15856
Change-Id: I94a0308a638021b13046b52b0c1f783202d27af0
Reviewed-by: default avatarEike Ziller <eike.ziller@theqtcompany.com>
parent 0196de33
......@@ -42,14 +42,13 @@ PasteSelectDialog::PasteSelectDialog(const QList<Protocol*> &protocols,
m_ui.setupUi(this);
foreach (const Protocol *protocol, protocols) {
m_ui.protocolBox->addItem(protocol->name());
connect(protocol, SIGNAL(listDone(QString,QStringList)),
this, SLOT(listDone(QString,QStringList)));
connect(protocol, &Protocol::listDone, this, &PasteSelectDialog::listDone);
}
connect(m_ui.protocolBox, SIGNAL(currentIndexChanged(int)),
this, SLOT(protocolChanged(int)));
connect(m_ui.protocolBox, static_cast<void (QComboBox::*)(int)>(&QComboBox::currentIndexChanged),
this, &PasteSelectDialog::protocolChanged);
m_refreshButton = m_ui.buttons->addButton(tr("Refresh"), QDialogButtonBox::ActionRole);
connect(m_refreshButton, SIGNAL(clicked()), this, SLOT(list()));
connect(m_refreshButton, &QPushButton::clicked, this, &PasteSelectDialog::list);
m_ui.listWidget->setSelectionMode(QAbstractItemView::SingleSelection);
if (!Utils::HostOsInfo::isMacHost())
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment