Skip to content
GitLab
Projects
Groups
Snippets
Help
Loading...
Help
What's new
10
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in
Toggle navigation
Open sidebar
Education
KStars
Commits
69552e0a
Commit
69552e0a
authored
Mar 23, 2017
by
Jasem Mutlaq
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Use Windows-friendly file names
parent
23105358
Changes
2
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
2 additions
and
2 deletions
+2
-2
kstars/auxiliary/ksutils.cpp
kstars/auxiliary/ksutils.cpp
+1
-1
kstars/indi/indistd.cpp
kstars/indi/indistd.cpp
+1
-1
No files found.
kstars/auxiliary/ksutils.cpp
View file @
69552e0a
...
...
@@ -565,7 +565,7 @@ void Logging::UseFile()
QDir
dir
;
QString
path
=
KSPaths
::
writableLocation
(
QStandardPaths
::
GenericDataLocation
)
+
"logs/"
+
QDateTime
::
currentDateTime
().
toString
(
"yyyy-MM-dd"
);
dir
.
mkpath
(
path
);
QString
name
=
"log_"
+
QDateTime
::
currentDateTime
().
toString
(
"HH
:
mm
:
ss"
)
+
".txt"
;
QString
name
=
"log_"
+
QDateTime
::
currentDateTime
().
toString
(
"HH
-
mm
-
ss"
)
+
".txt"
;
_filename
=
path
+
QStringLiteral
(
"/"
)
+
name
;
// Clear file contents
...
...
kstars/indi/indistd.cpp
View file @
69552e0a
...
...
@@ -311,7 +311,7 @@ void GenericDevice::processBLOB(IBLOB * bp)
QString
filename
(
currentDir
+
'/'
);
QString
ts
=
QDateTime
::
currentDateTime
().
toString
(
"yyyy-MM-ddThh
:
mm
:
ss"
);
QString
ts
=
QDateTime
::
currentDateTime
().
toString
(
"yyyy-MM-ddThh
-
mm
-
ss"
);
filename
+=
QString
(
"file_"
)
+
ts
+
QString
(
bp
->
format
).
trimmed
();
...
...
Write
Preview
Markdown
is supported
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