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
Weixuan Xiao
kdeconnect-kde
Commits
00305209
Commit
00305209
authored
Aug 07, 2013
by
Albert Vaca Cintora
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Don't show connection notifications for unpaired devices
parent
f2aff3c7
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
9 additions
and
6 deletions
+9
-6
daemon/daemon.cpp
daemon/daemon.cpp
+9
-6
No files found.
daemon/daemon.cpp
View file @
00305209
...
...
@@ -143,14 +143,17 @@ void Daemon::onNewDeviceLink(const NetworkPackage& identityPackage, DeviceLink*
Device
*
device
=
mDevices
[
id
];
device
->
addLink
(
dl
);
KNotification
*
notification
=
new
KNotification
(
"pingReceived"
);
//KNotification::Persistent
notification
->
setPixmap
(
KIcon
(
"dialog-ok"
).
pixmap
(
48
,
48
));
notification
->
setComponentData
(
KComponentData
(
"kdeconnect"
,
"kdeconnect"
));
notification
->
setTitle
(
device
->
name
());
notification
->
setText
(
"Succesfully connected"
);
notification
->
sendEvent
();
if
(
device
->
paired
())
{
KNotification
*
notification
=
new
KNotification
(
"pingReceived"
);
//KNotification::Persistent
notification
->
setPixmap
(
KIcon
(
"dialog-ok"
).
pixmap
(
48
,
48
));
notification
->
setComponentData
(
KComponentData
(
"kdeconnect"
,
"kdeconnect"
));
notification
->
setTitle
(
device
->
name
());
notification
->
setText
(
"Succesfully connected"
);
notification
->
sendEvent
();
}
emit
deviceStatusChanged
(
id
);
}
else
{
qDebug
()
<<
"It is a new device"
;
...
...
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