Skip to content
GitLab
Menu
Projects
Groups
Snippets
/
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in / Register
Toggle navigation
Menu
Open sidebar
Donald Haase
Cockatrice
Commits
c54f7b92
Commit
c54f7b92
authored
Jun 22, 2014
by
Daenyth
Browse files
Log on failed path copy
parent
3e43429f
Changes
1
Hide whitespace changes
Inline
Side-by-side
cockatrice/src/settingscache.cpp
View file @
c54f7b92
...
@@ -269,7 +269,10 @@ void SettingsCache::copyPath(const QString &src, const QString &dst)
...
@@ -269,7 +269,10 @@ void SettingsCache::copyPath(const QString &src, const QString &dst)
if
(
!
tmpDir
.
exists
())
if
(
!
tmpDir
.
exists
())
{
{
tmpDir
.
setPath
(
QDir
::
rootPath
());
tmpDir
.
setPath
(
QDir
::
rootPath
());
tmpDir
.
mkdir
(
dst
);
if
(
!
tmpDir
.
mkdir
(
dst
)
&&
!
tmpDir
.
exists
())
{
// TODO: this is probably not good.
qDebug
()
<<
"copyPath(): Failed to create dir: "
<<
dst
;
}
}
}
foreach
(
QString
d
,
dir
.
entryList
(
QDir
::
Dirs
|
QDir
::
NoDotAndDotDot
))
{
foreach
(
QString
d
,
dir
.
entryList
(
QDir
::
Dirs
|
QDir
::
NoDotAndDotDot
))
{
...
...
Write
Preview
Supports
Markdown
0%
Try again
or
attach a new 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