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
8d8ccaad
Commit
8d8ccaad
authored
Oct 02, 2014
by
Fabio Bas
Browse files
use 4 spaces instead of tabs
parent
37eaeaae
Changes
1
Hide whitespace changes
Inline
Side-by-side
servatrice/src/settingscache.cpp
View file @
8d8ccaad
...
@@ -9,23 +9,23 @@
...
@@ -9,23 +9,23 @@
QString
SettingsCache
::
guessConfigurationPath
(
QString
&
specificPath
)
QString
SettingsCache
::
guessConfigurationPath
(
QString
&
specificPath
)
{
{
const
QString
fileName
=
"servatrice.ini"
;
const
QString
fileName
=
"servatrice.ini"
;
QString
guessFileName
;
QString
guessFileName
;
// specific path
// specific path
if
(
!
specificPath
.
isEmpty
()
&&
QFile
::
exists
(
specificPath
))
if
(
!
specificPath
.
isEmpty
()
&&
QFile
::
exists
(
specificPath
))
return
specificPath
;
return
specificPath
;
// application directory path
// application directory path
guessFileName
=
QCoreApplication
::
applicationDirPath
()
+
"/"
+
fileName
;
guessFileName
=
QCoreApplication
::
applicationDirPath
()
+
"/"
+
fileName
;
if
(
QFile
::
exists
(
guessFileName
))
if
(
QFile
::
exists
(
guessFileName
))
return
guessFileName
;
return
guessFileName
;
#ifdef Q_OS_UNIX
#ifdef Q_OS_UNIX
// /etc
// /etc
guessFileName
=
"/etc/servatrice/"
+
fileName
;
guessFileName
=
"/etc/servatrice/"
+
fileName
;
if
(
QFile
::
exists
(
guessFileName
))
if
(
QFile
::
exists
(
guessFileName
))
return
guessFileName
;
return
guessFileName
;
#endif
#endif
#if QT_VERSION >= 0x050000
#if QT_VERSION >= 0x050000
...
...
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