1
0
mirror of https://github.com/altlinux/admc.git synced 2024-10-27 01:55:37 +03:00

Revert "tentative fix to crash in find widget"

This reverts commit f672be5c53.
This commit is contained in:
Dmitry Degtyarev 2022-02-10 15:21:22 +04:00
parent ffb244a693
commit 690be1a128
2 changed files with 2 additions and 7 deletions

View File

@ -168,8 +168,7 @@ void FindWidget::find() {
connect( connect(
find_thread, &SearchThread::results_ready, find_thread, &SearchThread::results_ready,
this, &FindWidget::handle_find_thread_results, this, &FindWidget::handle_find_thread_results);
Qt::QueuedConnection);
connect( connect(
this, &QObject::destroyed, this, &QObject::destroyed,
find_thread, &SearchThread::stop); find_thread, &SearchThread::stop);
@ -187,8 +186,7 @@ void FindWidget::find() {
ui->clear_button->setEnabled(true); ui->clear_button->setEnabled(true);
hide_busy_indicator(); hide_busy_indicator();
}, });
Qt::QueuedConnection);
show_busy_indicator(); show_busy_indicator();

View File

@ -33,9 +33,6 @@
* finished. * finished.
*/ */
// NOTE: use Qt::QueuedConnection when connecting to
// thread's signals from another thread
#include <QThread> #include <QThread>
#include "ad_defines.h" #include "ad_defines.h"