Replace open() with exec() in order to prevent the high cpu occupancy.
This commit is contained in:
parent
f12b8385a0
commit
8611cf74b6
|
@ -756,10 +756,13 @@ void Search::setupConnection()
|
||||||
|
|
||||||
void Search::onBtnAddBlockFolderClicked()
|
void Search::onBtnAddBlockFolderClicked()
|
||||||
{
|
{
|
||||||
m_blockDirDialog->open();
|
// m_blockDirDialog->open();
|
||||||
|
m_blockDirDialog->exec();
|
||||||
}
|
}
|
||||||
|
|
||||||
void Search::onAddSearchDirBtnClicked()
|
void Search::onAddSearchDirBtnClicked()
|
||||||
{
|
{
|
||||||
m_searchDirDialog->open();
|
//open()会导致cpu占用拉满
|
||||||
|
// m_searchDirDialog->open();
|
||||||
|
m_searchDirDialog->exec();
|
||||||
}
|
}
|
||||||
|
|
Loading…
Reference in New Issue