!27 修复控制面板搜索插件崩溃的问题

Merge pull request !27 from 1021upstream
This commit is contained in:
iaom 2022-11-21 02:21:12 +00:00 committed by Gitee
commit e76ebe9f0b
No known key found for this signature in database
GPG Key ID: 173E9B9CA92EEF8F
1 changed files with 1 additions and 1 deletions

View File

@ -15,7 +15,6 @@ Search::Search()
m_dirSettings = new QSettings(QDir::homePath() + CONFIG_FILE, QSettings::NativeFormat, this);
m_dirSettings->setIniCodec(QTextCodec::codecForName("UTF-8"));
initBlockDirsList();
const QByteArray id(UKUI_SEARCH_SCHEMAS);
if (QGSettings::isSchemaInstalled(id)) {
@ -39,6 +38,7 @@ QWidget *Search::pluginUi()
{
initUi();
connect(m_addBlockDirWidget, &QPushButton::clicked, this, &Search::onBtnAddFolderClicked);
initBlockDirsList();
if (m_gsettings) {
//按钮状态初始化