Skip to content
GitLab
Menu
Projects
Groups
Snippets
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in
Toggle navigation
Menu
Open sidebar
Utilities
Kate
Commits
f174f6c0
Commit
f174f6c0
authored
Dec 29, 2021
by
Volker Krause
Browse files
Replace deprecated QStandardPaths::DataLocation
parent
cbe5a314
Changes
1
Hide whitespace changes
Inline
Side-by-side
kwrite/kwrite.cpp
View file @
f174f6c0
...
...
@@ -80,7 +80,7 @@ KWrite::KWrite(KTextEditor::Document *doc, KWriteApplication *app)
guiFactory
()
->
addClient
(
m_view
);
// FIXME: make sure the config dir exists, any idea how to do it more cleanly?
QDir
(
QStandardPaths
::
writableLocation
(
QStandardPaths
::
DataLocation
)).
mkpath
(
QStringLiteral
(
"."
));
QDir
(
QStandardPaths
::
writableLocation
(
QStandardPaths
::
AppLocal
DataLocation
)).
mkpath
(
QStringLiteral
(
"."
));
// call it as last thing, must be sure everything is already set up ;)
setAutoSaveSettings
();
...
...
Write
Preview
Supports
Markdown
0%
Try again
or
attach a new file
.
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment