Members of the KDE Community are recommended to subscribe to the kde-community mailing list at https://mail.kde.org/mailman/listinfo/kde-community to allow them to participate in important discussions and receive other important announcements

Commit 04044a34 authored by Laurent Montel's avatar Laurent Montel 😁

We can use lambda with qt5.10

parent cdcef038
......@@ -532,7 +532,12 @@ void SearchWindow::searchDone(KJob *job)
{
Q_ASSERT(job == mSearchJob);
mSearchJob = nullptr;
#if QT_VERSION >= QT_VERSION_CHECK(5, 10, 0)
QMetaObject::invokeMethod(this, &SearchWindow::enableGUI, Qt::QueuedConnection);
#else
QMetaObject::invokeMethod(this, "enableGUI", Qt::QueuedConnection);
#endif
mUi.mProgressIndicator->stop();
if (job->error()) {
qCDebug(KMAIL_LOG) << job->errorString();
......
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