Skip to content
GitLab
Explore
Sign in
Primary navigation
Search or go to…
Project
V
vimba
Manage
Activity
Members
Labels
Plan
Issues
Issue boards
Milestones
Wiki
Requirements
Code
Merge requests
Repository
Branches
Commits
Tags
Repository graph
Compare revisions
Snippets
Locked files
Build
Pipelines
Jobs
Pipeline schedules
Test cases
Artifacts
Deploy
Releases
Package registry
Model registry
Operate
Environments
Terraform modules
Monitor
Incidents
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
kr69sugu
vimba
Commits
56ea134b
Commit
56ea134b
authored
1 year ago
by
am0ebe
Browse files
Options
Downloads
Patches
Plain Diff
argbugfix
parent
d7ac1fec
Branches
Branches containing commit
No related tags found
No related merge requests found
Changes
2
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
src/cmd/main.cpp
+2
-6
2 additions, 6 deletions
src/cmd/main.cpp
src/utils.cpp
+2
-1
2 additions, 1 deletion
src/utils.cpp
with
4 additions
and
7 deletions
src/cmd/main.cpp
+
2
−
6
View file @
56ea134b
...
@@ -17,14 +17,10 @@ int main(int argc, char *argv[])
...
@@ -17,14 +17,10 @@ int main(int argc, char *argv[])
QCoreApplication
::
setApplicationVersion
(
getVersion
());
QCoreApplication
::
setApplicationVersion
(
getVersion
());
QCoreApplication
::
setApplicationName
(
"recorder"
);
QCoreApplication
::
setApplicationName
(
"recorder"
);
//parse
from
arg
//parse arg
QStringList
arguments
=
a
.
arguments
();
QStringList
arguments
=
a
.
arguments
();
if
(
arguments
.
size
()
>=
1
)
if
(
arguments
.
size
()
>=
2
)
{
configFile
(
arguments
.
at
(
1
));
configFile
(
arguments
.
at
(
1
));
}
Controller
controller
;
Controller
controller
;
Core
core
;
Core
core
;
...
...
This diff is collapsed.
Click to expand it.
src/utils.cpp
+
2
−
1
View file @
56ea134b
...
@@ -140,10 +140,11 @@ bool maybeCreateDir(QDir out_dir)
...
@@ -140,10 +140,11 @@ bool maybeCreateDir(QDir out_dir)
void
parseConfig
(
QList
<
QPair
<
QString
,
QString
>>&
parsedCameras
)
void
parseConfig
(
QList
<
QPair
<
QString
,
QString
>>&
parsedCameras
)
{
{
qDebug
()
<<
"open "
<<
configFile
();
QFile
file
(
configFile
());
QFile
file
(
configFile
());
if
(
!
file
.
open
(
QIODevice
::
ReadOnly
))
if
(
!
file
.
open
(
QIODevice
::
ReadOnly
))
{
{
qWarning
()
<<
"Failed
to open file:"
<<
configFile
()
;
qWarning
()
<<
"Failed
"
;
return
;
return
;
}
}
...
...
This diff is collapsed.
Click to expand it.
Preview
0%
Loading
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!
Save comment
Cancel
Please
register
or
sign in
to comment