window.cpp: connect searchCancelled signal to proper slot
This commit is contained in:
parent
687f88f226
commit
4b9ccc50da
4
BUGS
4
BUGS
@ -1,4 +1,2 @@
|
|||||||
Type to fast and search must be triggered again (queues don't work as intended). Here,
|
SearchWorker: isPending etc. may need proper locking (with mutexes)
|
||||||
we may need proper mutexes.
|
|
||||||
|
|
||||||
Memory leaks(ignored for now due to short-running nature of the application)
|
Memory leaks(ignored for now due to short-running nature of the application)
|
||||||
|
@ -14,7 +14,6 @@
|
|||||||
* OR IN CONNECTION WITH THE USE OR PERFORMANCE OF THIS SOFTWARE.
|
* OR IN CONNECTION WITH THE USE OR PERFORMANCE OF THIS SOFTWARE.
|
||||||
*/
|
*/
|
||||||
#include "window.h"
|
#include "window.h"
|
||||||
#include <QDebug>
|
|
||||||
#include <QProcess>
|
#include <QProcess>
|
||||||
#include <QProcessEnvironment>
|
#include <QProcessEnvironment>
|
||||||
#include <QDirIterator>
|
#include <QDirIterator>
|
||||||
@ -34,6 +33,7 @@ Window::Window(const QVector<EntryConfig> &configs, const QString &dbpath)
|
|||||||
connect(this, &Window::beginFileSearch, searchWorker, &SearchWorker::searchForFile);
|
connect(this, &Window::beginFileSearch, searchWorker, &SearchWorker::searchForFile);
|
||||||
connect(this, &Window::beginContentSearch, searchWorker, &SearchWorker::searchForContent);
|
connect(this, &Window::beginContentSearch, searchWorker, &SearchWorker::searchForContent);
|
||||||
connect(searchWorker, &SearchWorker::searchResultsReady, this, &Window::handleSearchResults);
|
connect(searchWorker, &SearchWorker::searchResultsReady, this, &Window::handleSearchResults);
|
||||||
|
connect(searchWorker, &SearchWorker::searchCancelled, this, &Window::handleCancelledSearch);
|
||||||
searchThread.start();
|
searchThread.start();
|
||||||
initTreeWidgets();
|
initTreeWidgets();
|
||||||
this->lineEdit->installEventFilter(this);
|
this->lineEdit->installEventFilter(this);
|
||||||
|
Loading…
Reference in New Issue
Block a user