修复控制面板搜索插件崩溃的问题
This commit is contained in:
parent
190f36dc9d
commit
8b2c58381a
|
@ -15,7 +15,6 @@ Search::Search()
|
||||||
|
|
||||||
m_dirSettings = new QSettings(QDir::homePath() + CONFIG_FILE, QSettings::NativeFormat, this);
|
m_dirSettings = new QSettings(QDir::homePath() + CONFIG_FILE, QSettings::NativeFormat, this);
|
||||||
m_dirSettings->setIniCodec(QTextCodec::codecForName("UTF-8"));
|
m_dirSettings->setIniCodec(QTextCodec::codecForName("UTF-8"));
|
||||||
initBlockDirsList();
|
|
||||||
|
|
||||||
const QByteArray id(UKUI_SEARCH_SCHEMAS);
|
const QByteArray id(UKUI_SEARCH_SCHEMAS);
|
||||||
if (QGSettings::isSchemaInstalled(id)) {
|
if (QGSettings::isSchemaInstalled(id)) {
|
||||||
|
@ -39,6 +38,7 @@ QWidget *Search::pluginUi()
|
||||||
{
|
{
|
||||||
initUi();
|
initUi();
|
||||||
connect(m_addBlockDirWidget, &QPushButton::clicked, this, &Search::onBtnAddFolderClicked);
|
connect(m_addBlockDirWidget, &QPushButton::clicked, this, &Search::onBtnAddFolderClicked);
|
||||||
|
initBlockDirsList();
|
||||||
|
|
||||||
if (m_gsettings) {
|
if (m_gsettings) {
|
||||||
//按钮状态初始化
|
//按钮状态初始化
|
||||||
|
|
Loading…
Reference in New Issue