[X2Go-Commits] [x2godesktopsharing] 02/04: Add a soothing notification to the local user when the local user actively disconnects the remote user.
git-admin at x2go.org
git-admin at x2go.org
Mon Nov 12 16:43:44 CET 2018
This is an automated email from the git hooks/post-receive script.
x2go pushed a commit to branch master
in repository x2godesktopsharing.
commit c6e890870564369a9ca4019c4f67cb4f035ed134
Author: Mike Gabriel <mike.gabriel at das-netzwerkteam.de>
Date: Mon Nov 12 16:08:48 2018 +0100
Add a soothing notification to the local user when the local user actively disconnects the remote user.
---
debian/changelog | 2 ++
sharetray.cpp | 6 ++++++
2 files changed, 8 insertions(+)
diff --git a/debian/changelog b/debian/changelog
index 1bb9bf5..b728ab3 100644
--- a/debian/changelog
+++ b/debian/changelog
@@ -26,6 +26,8 @@ x2godesktopsharing (3.1.1.5-0x2go1) UNRELEASED; urgency=medium
QMessageBox in Qt5 is not suitable for adding a QCheckBox widget into it
anymore.
- Rephrase notifications (we need a i18n run already anyway...).
+ - Add a soothing notification to the local user when the local user actively
+ disconnects the remote user.
* debian/*:
+ Convert to DH packaging style. Build against Qt5.
* debian/control:
diff --git a/sharetray.cpp b/sharetray.cpp
index 9f62445..33841ec 100644
--- a/sharetray.cpp
+++ b/sharetray.cpp
@@ -468,6 +468,12 @@ void ShareTray::slotServerConnection()
void ShareTray::slotCloseConnection ( AccessAction* action )
{
kill ( action->pid().toUInt(),15 );
+
+ trayMessage ( tr ( "User has been disconnected" ),
+ QString (
+ tr ( "User \"%1\" ([%2]) is now disconnected." ) ).arg (
+ action->user() ).arg ( action->host() ) );
+
menu->removeAction ( action );
delete action;
setTrayIcon();
--
Alioth's /home/x2go-admin/maintenancescripts/git/hooks/post-receive-email on /srv/git/code.x2go.org/x2godesktopsharing.git
More information about the x2go-commits
mailing list