[X2Go-Commits] [x2goclient] 01/01: src/onmainwindow.cpp: fix last commit by using QFileInfo instead of QDir.

git-admin at x2go.org git-admin at x2go.org
Sat Aug 27 20:51:50 CEST 2016


This is an automated email from the git hooks/post-receive script.

x2go pushed a commit to branch master
in repository x2goclient.

commit a513cb08cb0b11bca40ef9ef767c06a7e6b534c7
Author: Mihai Moldovan <ionic at ionic.de>
Date:   Sat Aug 27 20:51:22 2016 +0200

    src/onmainwindow.cpp: fix last commit by using QFileInfo instead of QDir.
    
    This lets us use the exists () member function correctly.
---
 debian/changelog     |    2 ++
 src/onmainwindow.cpp |    6 +++---
 2 files changed, 5 insertions(+), 3 deletions(-)

diff --git a/debian/changelog b/debian/changelog
index 394a8dd..e3c5559 100644
--- a/debian/changelog
+++ b/debian/changelog
@@ -38,6 +38,8 @@ x2goclient (4.0.5.2-0x2go1) UNRELEASED; urgency=medium
       add_to_path ().
     - src/onmainwindow.cpp: work around changed SSH host key locations in OS X
       10.11+. Fixes: #1079. Also check /etc/ssh/ for keys.
+    - src/onmainwindow.cpp: fix last commit by using QFileInfo instead of
+      QDir. This lets us use the exists () member function correctly.
   * debian/control:
     - Maintainer change in package: X2Go Developers <x2go-dev at lists.x2go.org>.
     - Uploaders: add myself. Also, force a rebuild due to the changed
diff --git a/src/onmainwindow.cpp b/src/onmainwindow.cpp
index b4413f0..1042b58 100644
--- a/src/onmainwindow.cpp
+++ b/src/onmainwindow.cpp
@@ -8061,10 +8061,10 @@ QString ONMainWindow::createRSAKey()
 #ifdef Q_OS_DARWIN
     {
         /* OS X 10.11+ changed the key location to /etc/ssh/. */
-        QDir rsa_host_key ("/etc/ssh/ssh_host_rsa_key.pub");
+        QFileInfo rsa_host_key ("/etc/ssh/ssh_host_rsa_key.pub");
 
         if (!(rsa_host_key.exists ())) {
-            rsa_host_key = QDir ("/etc/ssh_host_rsa_key.pub");
+            rsa_host_key = QFileInfo ("/etc/ssh_host_rsa_key.pub");
 
             if (!(rsa_host_key.exists ())) {
                 printSshDError_noHostPubKey ();
@@ -8072,7 +8072,7 @@ QString ONMainWindow::createRSAKey()
             }
         }
 
-        rsa.setFileName (rsa_host_key.absolutePath ());
+        rsa.setFileName (rsa_host_key.absoluteFilePath ());
     }
 #endif
     if ( !rsa.open ( QIODevice::ReadOnly | QIODevice::Text ) )

--
Alioth's /srv/git/code.x2go.org/x2goclient.git//..//_hooks_/post-receive-email on /srv/git/code.x2go.org/x2goclient.git


More information about the x2go-commits mailing list