diff --git a/search-ukcc-plugin/search.cpp b/search-ukcc-plugin/search.cpp index e8c324a..7b318e6 100644 --- a/search-ukcc-plugin/search.cpp +++ b/search-ukcc-plugin/search.cpp @@ -176,7 +176,7 @@ QWidget *Search::pluginUi() }); connect(m_contentIndexBtn, &kdk::KSwitchButton::pressed, this, [ & ] { if (!m_contentIndexBtn->isChecked()) { - QMessageBox msgBox; + QMessageBox msgBox(m_pluginWidget); msgBox.setModal(true); msgBox.setIcon(QMessageBox::Warning); msgBox.setText(tr("Create file content index will increase the usage of memory and CPU, do you still want to open it?"));