Changeset 366


Ignore:
Timestamp:
Nov 30, 2009, 11:56:07 PM (15 years ago)
Author:
Dmitry A. Kuminov
Message:

corelib/global: Correct QLibraryPath after rolling back r355 and friends so that it still correctly resolves paths like '\some\dir'.

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/src/corelib/global/qlibraryinfo.cpp

    r357 r366  
    481481    }
    482482
     483
     484
     485
     486
     487
     488
     489
     490
     491
     492
     493
     494
     495
     496
     497
     498
     499
     500
     501
     502
     503
     504
     505
     506
     507
     508
     509
     510
     511
     512
    483513    if (QDir::isRelativePath(ret)) {
    484514        if (loc == PrefixPath) {
     
    488518            return QDir::cleanPath(QDir(fi.absolutePath()).absoluteFilePath(ret));
    489519#else
    490 #ifdef Q_OS_OS2
    491             QSettings *config = QLibraryInfoPrivate::configuration();
    492             if (config) {
    493                 // if we read paths from qt[sys].conf, the Prefix is relative to
    494                 // the directory we load qt[sys].conf from
    495                 QFileInfo fi(config->fileName());
    496                 return QDir::cleanPath(QDir(fi.absolutePath()).absoluteFilePath(ret));
    497             }
    498             else
    499 #endif
    500520            if (QCoreApplication::instance()) {
    501521#ifdef Q_OS_MAC
     
    520540    }
    521541    return QDir::cleanPath(ret);
     542
     543
    522544}
    523545
Note: See TracChangeset for help on using the changeset viewer.