Commit 6a0ff188 authored by Jean-Baptiste Mardelle's avatar Jean-Baptiste Mardelle
Browse files

Fix crash in proxy test dialog.

Fixes #1497
parent db9c2de7
Pipeline #212351 passed with stage
in 7 minutes and 25 seconds
......@@ -49,6 +49,7 @@ ProxyTest::ProxyTest(QWidget *parent)
infoWidget->setText(i18n("Starting process"));
infoWidget->animatedShow();
resultList->setCursor(Qt::BusyCursor);
buttonBox->button(QDialogButtonBox::Apply)->setEnabled(false);
#if QT_VERSION < QT_VERSION_CHECK(6, 0, 0)
QtConcurrent::run(this, &ProxyTest::startTest);
#else
......@@ -104,7 +105,6 @@ ProxyTest::~ProxyTest()
void ProxyTest::startTest()
{
buttonBox->button(QDialogButtonBox::Apply)->setEnabled(false);
// load proxy profiles
KConfig conf(QStringLiteral("encodingprofiles.rc"), KConfig::CascadeConfig, QStandardPaths::AppDataLocation);
KConfigGroup group(&conf, "proxy");
......
Supports Markdown
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