From 7479d5a703197fc06bddfd716e33408f8129ca81 Mon Sep 17 00:00:00 2001 From: JunjieBai Date: Thu, 8 Dec 2022 17:54:45 +0800 Subject: [PATCH] Replace open() with exec() in order to prevent the high cpu occupancy. --- search-ukcc-plugin/search.cpp | 7 +++++-- 1 file changed, 5 insertions(+), 2 deletions(-) diff --git a/search-ukcc-plugin/search.cpp b/search-ukcc-plugin/search.cpp index 25f8076..e39e2a6 100644 --- a/search-ukcc-plugin/search.cpp +++ b/search-ukcc-plugin/search.cpp @@ -756,10 +756,13 @@ void Search::setupConnection() void Search::onBtnAddBlockFolderClicked() { - m_blockDirDialog->open(); +// m_blockDirDialog->open(); + m_blockDirDialog->exec(); } void Search::onAddSearchDirBtnClicked() { - m_searchDirDialog->open(); + //open()会导致cpu占用拉满 +// m_searchDirDialog->open(); + m_searchDirDialog->exec(); }