Skip to content
GitLab
Explore
Sign in
Primary navigation
Search or go to…
Project
S
SOHViewer
Manage
Activity
Members
Labels
Plan
Issues
14
Issue boards
Milestones
Iterations
Wiki
Requirements
Code
Merge requests
5
Repository
Branches
Commits
Tags
Repository graph
Compare revisions
Snippets
Locked files
Build
Pipelines
Jobs
Pipeline schedules
Test cases
Artifacts
Deploy
Releases
Package Registry
Container Registry
Model registry
Operate
Environments
Terraform modules
Monitor
Incidents
Service Desk
Analyze
Value stream analytics
Contributor analytics
CI/CD analytics
Repository analytics
Code review analytics
Issue analytics
Insights
Model experiments
Help
Help
Support
GitLab documentation
Compare GitLab plans
Community forum
Contribute to GitLab
Provide feedback
Keyboard shortcuts
?
Snippets
Groups
Projects
Show more breadcrumbs
Software Public
PASSOFT
SOHViewer
Merge requests
!199
Write log file
Code
Review changes
Check out branch
Download
Patches
Plain diff
Merged
Write log file
feature-write_log_file
into
master
Overview
1
Commits
11
Pipelines
3
Changes
9
All threads resolved!
Hide all comments
Merged
Kien Le
requested to merge
feature-write_log_file
into
master
1 year ago
Overview
1
Commits
11
Pipelines
3
Changes
1
All threads resolved!
Hide all comments
Expand
#94 (closed)
👍
0
👎
0
Merge request reports
Viewing commit
7963ac87
Prev
Next
Show latest version
1 file
+
2
−
2
Inline
Compare changes
Side-by-side
Inline
Show whitespace changes
Show one file at a time
7963ac87
Write .log file
· 7963ac87
Kien Le
authored
1 year ago
sohstationviewer/view/search_message/search_message_dialog.py
+
2
−
2
Options
@@ -703,9 +703,9 @@ class SearchMessageDialog(QtWidgets.QWidget):
"""
tab_index
=
self
.
tab_widget
.
currentIndex
()
tab_name
=
self
.
tab_widget
.
tabText
(
tab_index
)
default_name
=
os
.
path
.
join
(
QtCore
.
QDir
.
homePath
(),
f
'
{
tab_name
}
.
txt
'
)
default_name
=
os
.
path
.
join
(
QtCore
.
QDir
.
homePath
(),
f
'
{
tab_name
}
.
log
'
)
file_name
=
QtWidgets
.
QFileDialog
.
getSaveFileName
(
self
,
'
Save File
'
,
default_name
,
"
t
ext(*.
txt
)
"
)[
0
]
self
,
'
Save File
'
,
default_name
,
"
T
ext
(*.
log
)
"
)[
0
]
if
file_name
==
''
:
return
with
open
(
file_name
,
'
w
'
)
as
file
:
Loading