Uploaded image for project: 'Qt'
  1. Qt
  2. QTBUG-28912

QDir::homePath() does not work as documented on non-Windows OS

XMLWordPrintable

    • Icon: Bug Bug
    • Resolution: Done
    • Icon: P3: Somewhat important P3: Somewhat important
    • 5.0.1
    • 4.8.4, 5.0.0
    • Core: I/O
    • Ubuntu 10.04 LTS, VxWorks 6.9.2
    • 05b4000e01ff5785739617c3069fbe0b0d36a606

      Checking QString home.isNull() is never true if HOME environment variable is not set, it's empty (""). Should use isEmpty() instead.

      QString QFileSystemEngine::homePath()
      {
      QString home = QFile::decodeName(qgetenv("HOME"));
      if (home.isNull())
      home = rootPath();
      return QDir::cleanPath(home);
      }

        For Gerrit Dashboard: QTBUG-28912
        # Subject Branch Project Status CR V

            papetaja Pasi Petäjäjärvi
            papetaja Pasi Petäjäjärvi
            Votes:
            0 Vote for this issue
            Watchers:
            2 Start watching this issue

              Created:
              Updated:
              Resolved:

                There are no open Gerrit changes