Skip to content

Commit

Permalink
m
Browse files Browse the repository at this point in the history
  • Loading branch information
ElTh0r0 committed Nov 26, 2022
1 parent c6a8582 commit f408b3e
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 1 deletion.
2 changes: 1 addition & 1 deletion application/inyokaedit.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -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/" +
Expand Down
2 changes: 2 additions & 0 deletions plugins/highlighter/highlighter.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -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();
Expand Down Expand Up @@ -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));
Expand Down

0 comments on commit f408b3e

Please sign in to comment.