Skip to content
GitLab
Explore
Sign in
Primary navigation
Search or go to…
Project
jami-daemon
Manage
Activity
Members
Labels
Plan
Issues
Issue boards
Milestones
Iterations
Wiki
Requirements
Code
Repository
Branches
Commits
Tags
Repository graph
Compare revisions
Locked files
Deploy
Releases
Model registry
Monitor
Incidents
Analyze
Value stream analytics
Contributor analytics
Repository analytics
Issue analytics
Insights
Model experiments
Help
Help
Support
GitLab documentation
Compare GitLab plans
GitLab community forum
Contribute to GitLab
Provide feedback
Keyboard shortcuts
?
Snippets
Groups
Projects
Show more breadcrumbs
savoirfairelinux
jami-daemon
Commits
4887e811
Commit
4887e811
authored
16 years ago
by
Jérémy Quentin
Browse files
Options
Downloads
Patches
Plain Diff
Better handling of registration to the daemon.
parent
a722da3c
Branches
Branches containing commit
Tags
Tags containing commit
No related merge requests found
Changes
2
Show whitespace changes
Inline
Side-by-side
Showing
2 changed files
sflphone_kde/SFLPhone.cpp
+4
-1
4 additions, 1 deletion
sflphone_kde/SFLPhone.cpp
sflphone_kde/sflphone_kdeview.cpp
+2
-2
2 additions, 2 deletions
sflphone_kde/sflphone_kdeview.cpp
with
6 additions
and
3 deletions
sflphone_kde/SFLPhone.cpp
+
4
−
1
View file @
4887e811
...
...
@@ -10,6 +10,7 @@
#include
<KActionCollection>
#include
"sflphone_const.h"
#include
"instance_interface_singleton.h"
...
...
@@ -100,13 +101,15 @@ void SFLPhone::setupActions()
bool
SFLPhone
::
queryClose
()
{
InstanceInterface
&
instance
=
InstanceInterfaceSingleton
::
getInstance
();
qDebug
()
<<
"queryClose : "
<<
view
->
listWidget_callList
->
count
()
<<
" calls open."
;
if
(
view
->
listWidget_callList
->
count
()
>
0
)
if
(
view
->
listWidget_callList
->
count
()
>
0
&&
instance
.
getRegistrationCount
()
<=
1
)
{
qDebug
()
<<
"Attempting to quit when still having some calls open."
;
view
->
getErrorWindow
()
->
showMessage
(
tr2i18n
(
"You still have some calls open. Please close all calls before quitting."
,
0
));
return
false
;
}
instance
.
Unregister
(
getpid
());
return
true
;
}
...
...
This diff is collapsed.
Click to expand it.
sflphone_kde/sflphone_kdeview.cpp
+
2
−
2
View file @
4887e811
...
...
@@ -89,8 +89,8 @@ sflphone_kdeView::~sflphone_kdeView()
delete
wizard
;
delete
callList
;
delete
errorWindow
;
InstanceInterface
&
instance
=
InstanceInterfaceSingleton
::
getInstance
();
instance
.
Unregister
(
getpid
());
//
InstanceInterface & instance = InstanceInterfaceSingleton::getInstance();
//
instance.Unregister(getpid());
}
...
...
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