diff --git a/application/inyokaedit.cpp b/application/inyokaedit.cpp index cb120be..4f53938 100644 --- a/application/inyokaedit.cpp +++ b/application/inyokaedit.cpp @@ -102,7 +102,7 @@ InyokaEdit::InyokaEdit(const QDir &userDataDir, const QDir &sharePath, this->setupEditor(); this->createActions(); this->createMenus(); - // this->createXmlMenus(); // Already called by LanguageChange event + this->createXmlMenus(); this->setUnifiedTitleAndToolBarOnMac(true); if (!QFile(m_UserDataDir.absolutePath() + "/community/" + diff --git a/plugins/highlighter/highlighter.cpp b/plugins/highlighter/highlighter.cpp index c032a5a..d0961dd 100644 --- a/plugins/highlighter/highlighter.cpp +++ b/plugins/highlighter/highlighter.cpp @@ -195,6 +195,7 @@ void Highlighter::loadDefaultStyles(bool bReset) { for (const auto &sFile : qAsConst(sDefaultFiles)) { QFile stylefile(confDir.absolutePath() + "/" + sFile + m_sExt); + stylefile.setPermissions(stylefile.permissions() | QFileDevice::WriteUser); if (bReset && stylefile.exists()) { if (!stylefile.remove()) { qWarning() << "Couldn't delete style file: " << stylefile.fileName(); @@ -741,6 +742,7 @@ void Highlighter::changedStyle(int nIndex) { qWarning() << "Copy:" << fileStyle.fileName(); return; } + fileStyle.setPermissions(fileStyle.permissions() | QFileDevice::WriteUser); m_pUi->styleFilesBox->addItem(sFileName); m_pUi->styleFilesBox->setCurrentIndex( m_pUi->styleFilesBox->findText(sFileName));