Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Submit feedback
Contribute to GitLab
Sign in
Toggle navigation
L
linphone-desktop
Project
Project
Details
Activity
Releases
Cycle Analytics
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Issues
0
Issues
0
List
Boards
Labels
Milestones
Merge Requests
0
Merge Requests
0
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Charts
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Charts
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
Administrator
linphone-desktop
Commits
708255c0
Commit
708255c0
authored
May 10, 2017
by
Ronan Abhamon
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
feat(src/app): do not display splashscreen when selftest option is used
parent
273c0563
Changes
3
Hide whitespace changes
Inline
Side-by-side
Showing
3 changed files
with
11 additions
and
9 deletions
+11
-9
en.ts
linphone-desktop/assets/languages/en.ts
+2
-2
fr.ts
linphone-desktop/assets/languages/fr.ts
+2
-2
App.cpp
linphone-desktop/src/app/App.cpp
+7
-5
No files found.
linphone-desktop/assets/languages/en.ts
View file @
708255c0
...
...
@@ -26,7 +26,7 @@
<
context
>
<
name
>
App
<
/name
>
<
message
>
<
source
>
self
t
estResult
<
/source
>
<
source
>
self
T
estResult
<
/source
>
<
translation
>
Linphone
seems
to
be
running
correctly
.
<
/translation
>
<
/message
>
<
message
>
...
...
@@ -38,7 +38,7 @@
<
translation
>
Specify
the
linphone
configuration
file
to
use
.
<
/translation
>
<
/message
>
<
message
>
<
source
>
commandLineOptionSelf
t
est
<
/source
>
<
source
>
commandLineOptionSelf
T
est
<
/source
>
<
translation
>
Run
self
test
and
exit
0
if
it
succeeded
.
<
/translation
>
<
/message
>
<
message
>
...
...
linphone-desktop/assets/languages/fr.ts
View file @
708255c0
...
...
@@ -26,7 +26,7 @@
<
context
>
<
name
>
App
<
/name
>
<
message
>
<
source
>
self
t
estResult
<
/source
>
<
source
>
self
T
estResult
<
/source
>
<
translation
>
Linphone
semble
fonctionner
normalement
.
<
/translation
>
<
/message
>
<
message
>
...
...
@@ -38,7 +38,7 @@
<
translation
>
Sp
é
cifier
un
fichier
de
configuration
à
utiliser
.
<
/translation
>
<
/message
>
<
message
>
<
source
>
commandLineOptionSelf
t
est
<
/source
>
<
source
>
commandLineOptionSelf
T
est
<
/source
>
<
translation
>
É
x
é
cuter
un
test
automatique
et
retourner
0
en
cas
de
succ
è
s
.
<
/translation
>
<
/message
>
<
message
>
...
...
linphone-desktop/src/app/App.cpp
View file @
708255c0
...
...
@@ -176,12 +176,14 @@ void App::initContentApp () {
qFatal
(
"Unable to open main window."
);
// Load splashscreen.
activeSplashScreen
(
this
);
bool
selfTest
=
mParser
.
isSet
(
"self-test"
);
if
(
!
selfTest
)
activeSplashScreen
(
this
);
QObject
::
connect
(
CoreManager
::
getInstance
()
->
getHandlers
().
get
(),
&
CoreHandlers
::
coreStarted
,
this
,
mParser
.
isSet
(
"selftest"
)
?
&
App
::
quit
:
&
App
::
openAppAfterInit
this
,
selfTest
?
&
App
::
quit
:
&
App
::
openAppAfterInit
);
}
...
...
@@ -196,7 +198,7 @@ void App::parseArgs () {
#ifndef __APPLE__
{
"iconified"
,
tr
(
"commandLineOptionIconified"
)
},
#endif // ifndef __APPLE__
{
"self
test"
,
tr
(
"commandLineOptionSelft
est"
)
},
{
"self
-test"
,
tr
(
"commandLineOptionSelfT
est"
)
},
{
{
"V"
,
"verbose"
},
tr
(
"commandLineOptionVerbose"
)
}
});
...
...
@@ -459,8 +461,8 @@ void App::openAppAfterInit () {
// -----------------------------------------------------------------------------
void
App
::
quit
()
{
if
(
mParser
.
isSet
(
"selftest"
))
cout
<<
tr
(
"self
t
estResult"
).
toStdString
()
<<
endl
;
if
(
mParser
.
isSet
(
"self
-
test"
))
cout
<<
tr
(
"self
T
estResult"
).
toStdString
()
<<
endl
;
QApplication
::
quit
();
}
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