This is an automated email from the git hooks/post-receive script. x2go pushed a change to branch bugfix/general in repository x2goclient. omits a128484 onmainwindow.cpp: also make the message about a non-running sshd non-modal. omits cd1e12e onmainwindow.cpp: use Non_Modal_MessageBox::critical function to display errors relating to missing sshd host keys. omits fa582dd non_modal_messagebox.{cpp,h}: add new Non_Modal_MessageBox class for non-modal message boxes. omits a2798ac onmainwindow.cpp: clarify message regarding missing SSH daemon host keys. omits 982268a onmainwindow.cpp: actually call slotTunnelOk(int), do not generate a run time error by calling the non-existent function slotTunnelOk(). new f44a6d0 onmainwindow.cpp: actually call slotTunnelOk(int), do not generate a run time error by calling the non-existent function slotTunnelOk(). new aa11eb5 onmainwindow.cpp: clarify message regarding missing SSH daemon host keys. new 18677da non_modal_messagebox.{cpp,h}: add new Non_Modal_MessageBox class for non-modal message boxes. new fd09a56 onmainwindow.cpp: use Non_Modal_MessageBox::critical function to display errors relating to missing sshd host keys. new a4196bf onmainwindow.cpp: also make the message about a non-running sshd non-modal. This update added new revisions after undoing existing revisions. That is to say, some revisions that were in the old version of the branch are not in the new version. This situation occurs when a user --force pushes a change and generates a repository containing something like this: * -- * -- B -- O -- O -- O (a128484) \ N -- N -- N refs/heads/bugfix/general (a4196bf) You should already have received notification emails for all of the O revisions, and so the following emails describe only the N revisions from the common base, B. Any revisions marked "omits" are not gone; other references still refer to them. Any revisions marked "discards" are gone forever. The 5 revisions listed above as "new" are entirely new to this repository and will be described in separate emails. The revisions listed as "adds" were already present in the repository and have only been added to this reference. Summary of changes: debian/changelog | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) -- Alioth's /srv/git/code.x2go.org/x2goclient.git//..//_hooks_/post-receive-email on /srv/git/code.x2go.org/x2goclient.git
This is an automated email from the git hooks/post-receive script. x2go pushed a commit to branch bugfix/general in repository x2goclient. commit f44a6d0716e92882e4714b097bbd68ea3975331e Author: Mihai Moldovan <ionic@ionic.de> Date: Sat Mar 7 02:09:39 2015 +0100 onmainwindow.cpp: actually call slotTunnelOk(int), do not generate a run time error by calling the non-existent function slotTunnelOk(). Fixes #804. --- debian/changelog | 3 +++ src/onmainwindow.cpp | 2 +- 2 files changed, 4 insertions(+), 1 deletion(-) diff --git a/debian/changelog b/debian/changelog index 1d4fb5b..7cf61db 100644 --- a/debian/changelog +++ b/debian/changelog @@ -181,6 +181,9 @@ x2goclient (4.0.4.0-0x2go1) UNRELEASED; urgency=low - Windows: correctly reference windows icon. - x2goclient.spec: fix builds on Fedora and related due to failing removal of browserplugin directory. That's non-critical. + - onmainwindow.cpp: actually call slotTunnelOk(int), do not generate a run + time error by calling the non-existent function slotTunnelOk(). + Fixes: #804. -- X2Go Release Manager <git-admin@x2go.org> Thu, 19 Feb 2015 13:25:28 +0100 diff --git a/src/onmainwindow.cpp b/src/onmainwindow.cpp index 3e41db8..45ef1f8 100644 --- a/src/onmainwindow.cpp +++ b/src/onmainwindow.cpp @@ -5175,7 +5175,7 @@ void ONMainWindow::slotTunnelOk(int) x2goDebug<<"Waiting for win-servers."; - QTimer::singleShot ( 100, this, SLOT ( slotTunnelOk() ) ); + QTimer::singleShot ( 100, this, SLOT ( slotTunnelOk(int) ) ); return; } #endif -- Alioth's /srv/git/code.x2go.org/x2goclient.git//..//_hooks_/post-receive-email on /srv/git/code.x2go.org/x2goclient.git
This is an automated email from the git hooks/post-receive script. x2go pushed a commit to branch bugfix/general in repository x2goclient. commit aa11eb5bd871b1ea73d950df39e4a4d8d619cb0a Author: Mihai Moldovan <ionic@ionic.de> Date: Sat Mar 7 03:56:38 2015 +0100 onmainwindow.cpp: clarify message regarding missing SSH daemon host keys. Fixes #793. --- debian/changelog | 2 ++ src/onmainwindow.cpp | 11 +++++++++-- 2 files changed, 11 insertions(+), 2 deletions(-) diff --git a/debian/changelog b/debian/changelog index 7cf61db..a63847c 100644 --- a/debian/changelog +++ b/debian/changelog @@ -184,6 +184,8 @@ x2goclient (4.0.4.0-0x2go1) UNRELEASED; urgency=low - onmainwindow.cpp: actually call slotTunnelOk(int), do not generate a run time error by calling the non-existent function slotTunnelOk(). Fixes: #804. + - onmainwindow.cpp: clarify message regarding missing SSH daemon host + keys. Fixes: #793. -- X2Go Release Manager <git-admin@x2go.org> Thu, 19 Feb 2015 13:25:28 +0100 diff --git a/src/onmainwindow.cpp b/src/onmainwindow.cpp index 45ef1f8..4eae095 100644 --- a/src/onmainwindow.cpp +++ b/src/onmainwindow.cpp @@ -11393,9 +11393,16 @@ void ONMainWindow::printSshDError_noHostPubKey() if ( closeEventSent ) return; QMessageBox::critical ( 0l,tr ( "SSH Error" ), - tr ( "SSH daemon failed to open the application's public host key." + tr ( "SSH daemon failed to open the its public host key.\n\n" + + "You have enabled Remote Printing or File Sharing.\n" + "These features require a running and functioning SSH server on your computer.\n\n" + "The Server is currently not configured correctly.\n\n" + "Please ensure that the server's public exists.\n" + "Host keys can be generated by running:\n\n" + "\tsudo ssh-keygen -A" ), - QMessageBox::Ok,QMessageBox::NoButton ); + QMessageBox::Ok, QMessageBox::NoButton ); } void ONMainWindow::printSshDError_noExportPubKey() -- Alioth's /srv/git/code.x2go.org/x2goclient.git//..//_hooks_/post-receive-email on /srv/git/code.x2go.org/x2goclient.git
This is an automated email from the git hooks/post-receive script. x2go pushed a commit to branch bugfix/general in repository x2goclient. commit 18677da6be9955198fa1b6f83b57ca5468dba7df Author: Mihai Moldovan <ionic@ionic.de> Date: Mon Mar 9 22:49:25 2015 +0100 non_modal_messagebox.{cpp,h}: add new Non_Modal_MessageBox class for non-modal message boxes. --- debian/changelog | 2 ++ src/non_modal_messagebox.cpp | 43 ++++++++++++++++++++++++++++++++++++++++++ src/non_modal_messagebox.h | 33 ++++++++++++++++++++++++++++++++ src/onmainwindow.h | 2 +- x2goclient.pro | 6 ++++-- 5 files changed, 83 insertions(+), 3 deletions(-) diff --git a/debian/changelog b/debian/changelog index a63847c..393f57e 100644 --- a/debian/changelog +++ b/debian/changelog @@ -186,6 +186,8 @@ x2goclient (4.0.4.0-0x2go1) UNRELEASED; urgency=low Fixes: #804. - onmainwindow.cpp: clarify message regarding missing SSH daemon host keys. Fixes: #793. + - non_modal_messagebox.{cpp,h}: Add new Non_Modal_MessageBox class for + non-modal message boxes. -- X2Go Release Manager <git-admin@x2go.org> Thu, 19 Feb 2015 13:25:28 +0100 diff --git a/src/non_modal_messagebox.cpp b/src/non_modal_messagebox.cpp new file mode 100644 index 0000000..68ff7ac --- /dev/null +++ b/src/non_modal_messagebox.cpp @@ -0,0 +1,43 @@ +/************************************************************************** +* Copyright (C) 2015 by Mihai Moldovan <ionic@ionic.de> * +* * +* This program is free software; you can redistribute it and/or modify * +* it under the terms of the GNU General Public License as published by * +* the Free Software Foundation; either version 2 of the License, or * +* (at your option) any later version. * +* This program is distributed in the hope that it will be useful, * +* but WITHOUT ANY WARRANTY; without even the implied warranty of * +* MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the * +* GNU General Public License for more details. * +* * +* You should have received a copy of the GNU General Public License * +* along with this program. If not, see <http://www.gnu.org/licenses/>. * +***************************************************************************/ + +#include "non_modal_messagebox.h" +#include <QGridLayout> +#include <QSpacerItem> + +// Please look up the documentation in the header file! +void Non_Modal_MessageBox::critical (QWidget *parent, const QString &title, + const QString &text, + QMessageBox::StandardButtons buttons, + QMessageBox::StandardButton defaultButton) { + QMessageBox *msg_box = new QMessageBox (QMessageBox::Critical, title, text, buttons, parent); + + msg_box->setAttribute (Qt::WA_DeleteOnClose); + msg_box->setDefaultButton (defaultButton); + + // Set to minimum width of 300px. + QSpacerItem *horizontal_spacer = new QSpacerItem (500, 0, QSizePolicy::Minimum, QSizePolicy::Expanding); + QGridLayout *grid_layout = (QGridLayout*) (msg_box->layout ()); + grid_layout->addItem (horizontal_spacer, grid_layout->rowCount (), 0, 1, grid_layout->columnCount ()); + + // Here's the real magic. + msg_box->setModal (false); + + msg_box->show (); + msg_box->raise (); + msg_box->activateWindow (); +} + diff --git a/src/non_modal_messagebox.h b/src/non_modal_messagebox.h new file mode 100644 index 0000000..ab7505e --- /dev/null +++ b/src/non_modal_messagebox.h @@ -0,0 +1,33 @@ +/************************************************************************** +* Copyright (C) 2015 by Mihai Moldovan <ionic@ionic.de> * +* * +* This program is free software; you can redistribute it and/or modify * +* it under the terms of the GNU General Public License as published by * +* the Free Software Foundation; either version 2 of the License, or * +* (at your option) any later version. * +* This program is distributed in the hope that it will be useful, * +* but WITHOUT ANY WARRANTY; without even the implied warranty of * +* MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the * +* GNU General Public License for more details. * +* * +* You should have received a copy of the GNU General Public License * +* along with this program. If not, see <http://www.gnu.org/licenses/>. * +***************************************************************************/ + +#ifndef NON_MODAL_MESSAGEBOX_H +#define NON_MODAL_MESSAGEBOX_H + +#include <QMessageBox> + +class Non_Modal_MessageBox { + public: + // Use this instead QMessageBox::critical for a non-modal variant. + // Caveat: this function does return immediately and will NOT return the clicked button. + static void critical (QWidget *parent, const QString &title, + const QString &text, + QMessageBox::StandardButtons buttons = QMessageBox::Ok, + QMessageBox::StandardButton defaultButton = QMessageBox::NoButton); + +}; + +#endif /* !defined (NON_MODAL_MESSAGEBOX_H) */ diff --git a/src/onmainwindow.h b/src/onmainwindow.h index 57ad65b..e1b68dc 100644 --- a/src/onmainwindow.h +++ b/src/onmainwindow.h @@ -42,7 +42,7 @@ #include <QToolBar> #include <QSystemTrayIcon> #include "sshmasterconnection.h" - +#include "non_modal_messagebox.h" #ifdef Q_OS_WIN diff --git a/x2goclient.pro b/x2goclient.pro index e790d5e..d41b07e 100644 --- a/x2goclient.pro +++ b/x2goclient.pro @@ -75,7 +75,8 @@ HEADERS += src/configdialog.h \ src/helpdialog.h \ src/sessionexplorer.h \ src/folderbutton.h \ - src/folderexplorer.h + src/folderexplorer.h \ + src/non_modal_messagebox.h SOURCES += src/sharewidget.cpp \ src/settingswidget.cpp \ @@ -116,7 +117,8 @@ SOURCES += src/sharewidget.cpp \ src/helpdialog.cpp \ src/sessionexplorer.cpp \ src/folderbutton.cpp \ - src/folderexplorer.cpp + src/folderexplorer.cpp \ + src/non_modal_messagebox.cpp LIBS += -lssh win32:LIBS += -lAdvAPI32 -lshell32 -lUser32 -- Alioth's /srv/git/code.x2go.org/x2goclient.git//..//_hooks_/post-receive-email on /srv/git/code.x2go.org/x2goclient.git
This is an automated email from the git hooks/post-receive script. x2go pushed a commit to branch bugfix/general in repository x2goclient. commit fd09a566f234f80574b1d037f68c9087f75293c7 Author: Mihai Moldovan <ionic@ionic.de> Date: Mon Mar 9 22:53:56 2015 +0100 onmainwindow.cpp: use Non_Modal_MessageBox::critical function to display errors relating to missing sshd host keys. Fixes #794. --- debian/changelog | 2 ++ src/onmainwindow.cpp | 26 +++++++++++++++----------- 2 files changed, 17 insertions(+), 11 deletions(-) diff --git a/debian/changelog b/debian/changelog index 393f57e..3c1740e 100644 --- a/debian/changelog +++ b/debian/changelog @@ -188,6 +188,8 @@ x2goclient (4.0.4.0-0x2go1) UNRELEASED; urgency=low keys. Fixes: #793. - non_modal_messagebox.{cpp,h}: Add new Non_Modal_MessageBox class for non-modal message boxes. + - onmainwindow.cpp: use Non_Modal_MessageBox::critical function to display + errors relating to missing sshd host keys. Fixes: #794. -- X2Go Release Manager <git-admin@x2go.org> Thu, 19 Feb 2015 13:25:28 +0100 diff --git a/src/onmainwindow.cpp b/src/onmainwindow.cpp index 4eae095..07707b9 100644 --- a/src/onmainwindow.cpp +++ b/src/onmainwindow.cpp @@ -11392,17 +11392,21 @@ void ONMainWindow::printSshDError_noHostPubKey() { if ( closeEventSent ) return; - QMessageBox::critical ( 0l,tr ( "SSH Error" ), - tr ( "SSH daemon failed to open the its public host key.\n\n" - - "You have enabled Remote Printing or File Sharing.\n" - "These features require a running and functioning SSH server on your computer.\n\n" - "The Server is currently not configured correctly.\n\n" - "Please ensure that the server's public exists.\n" - "Host keys can be generated by running:\n\n" - "\tsudo ssh-keygen -A" - ), - QMessageBox::Ok, QMessageBox::NoButton ); + Non_Modal_MessageBox::critical (0l, tr ( "SSH Error" ), + tr ("SSH daemon failed to open its public host key.\n\n" + + "You have enabled Remote Printing or File Sharing.\n" + "These features require a running and functioning SSH server on your computer.\n\n" + + "The Server is currently not configured correctly.\n\n" + + "Please ensure that the server's public exists.\n" + "Host keys can be generated by running:\n\n" + + "\tsudo ssh-keygen -A\n\n" + + "Disabling Remote Printing or File Sharing support will get rid of this message."), + QMessageBox::Ok, QMessageBox::NoButton); } void ONMainWindow::printSshDError_noExportPubKey() -- Alioth's /srv/git/code.x2go.org/x2goclient.git//..//_hooks_/post-receive-email on /srv/git/code.x2go.org/x2goclient.git
This is an automated email from the git hooks/post-receive script. x2go pushed a commit to branch bugfix/general in repository x2goclient. commit a4196bff3262b5bb8b9afb141ace5bd8b9e192b8 Author: Mihai Moldovan <ionic@ionic.de> Date: Mon Mar 9 23:12:35 2015 +0100 onmainwindow.cpp: also make the message about a non-running sshd non-modal. --- debian/changelog | 2 ++ src/onmainwindow.cpp | 18 +++++++++++------- 2 files changed, 13 insertions(+), 7 deletions(-) diff --git a/debian/changelog b/debian/changelog index 3c1740e..a2b3ba1 100644 --- a/debian/changelog +++ b/debian/changelog @@ -190,6 +190,8 @@ x2goclient (4.0.4.0-0x2go1) UNRELEASED; urgency=low non-modal message boxes. - onmainwindow.cpp: use Non_Modal_MessageBox::critical function to display errors relating to missing sshd host keys. Fixes: #794. + - onmainwindow.cpp: also make the message about a non-running sshd + non-modal. -- X2Go Release Manager <git-admin@x2go.org> Thu, 19 Feb 2015 13:25:28 +0100 diff --git a/src/onmainwindow.cpp b/src/onmainwindow.cpp index 07707b9..fad2cb7 100644 --- a/src/onmainwindow.cpp +++ b/src/onmainwindow.cpp @@ -11376,15 +11376,19 @@ void ONMainWindow::printSshDError_startupFailure() #else if ( closeEventSent ) return; - QMessageBox::critical ( 0l,tr ( "SSH Error" ), - tr ( "SSH daemon is not running.\n\n" + Non_Modal_MessageBox::critical (0l, tr ("SSH Error"), + tr ("SSH daemon is not running.\n\n" - "You'll need SSH daemon for printing and file sharing\n\n" + "You have enabled Remote Printing or File Sharing.\n" + "These features require a running and functioning SSH server on your computer.\n\n" - "Please ask your system administrator to provide the SSH\n" - "service on your computer." - ), - QMessageBox::Ok,QMessageBox::NoButton ); + "The Server is currently not started.\n\n" + + "Please ask your system administrator to provide the SSH\n" + "service on your computer.\n\n" + + "Disabling Remote Printing or File Sharing support will get rid of this message."), + QMessageBox::Ok, QMessageBox::NoButton); #endif } -- Alioth's /srv/git/code.x2go.org/x2goclient.git//..//_hooks_/post-receive-email on /srv/git/code.x2go.org/x2goclient.git