summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorQt Continuous Integration System <qt-info@nokia.com>2010-12-18 23:02:29 (GMT)
committerQt Continuous Integration System <qt-info@nokia.com>2010-12-18 23:02:29 (GMT)
commitedd574758bdc4223a3d38b0f5cd0e1f11c537b55 (patch)
treea95fbee6c5efc127f1c069804f7d1d1d36c2d06a
parentafb304bc3de01262e183b7f9904493e3d898a744 (diff)
parent8bea6ea27ff47ff2a02cb6e8ef5b16b3a7d0f0d5 (diff)
downloadQt-edd574758bdc4223a3d38b0f5cd0e1f11c537b55.zip
Qt-edd574758bdc4223a3d38b0f5cd0e1f11c537b55.tar.gz
Qt-edd574758bdc4223a3d38b0f5cd0e1f11c537b55.tar.bz2
Merge branch '4.7' of git://scm.dev.nokia.troll.no/qt/qt-water-team
* '4.7' of git://scm.dev.nokia.troll.no/qt/qt-water-team: Use relative include instead of absolute in default qmake.conf Fix waitForOpened not working with already active configuration
-rw-r--r--src/network/bearer/qnetworksession.cpp3
-rw-r--r--tools/configure/configureapp.cpp8
2 files changed, 9 insertions, 2 deletions
diff --git a/src/network/bearer/qnetworksession.cpp b/src/network/bearer/qnetworksession.cpp
index 226c3c5..db1a37c 100644
--- a/src/network/bearer/qnetworksession.cpp
+++ b/src/network/bearer/qnetworksession.cpp
@@ -310,8 +310,9 @@ bool QNetworkSession::waitForOpened(int msecs)
if (d->isOpen)
return true;
- if (d->state != Connecting)
+ if (!(d->state == Connecting || d->state == Connected)) {
return false;
+ }
QEventLoop* loop = new QEventLoop(this);
QObject::connect(d, SIGNAL(quitPendingWaitsForOpened()),
diff --git a/tools/configure/configureapp.cpp b/tools/configure/configureapp.cpp
index c967dad..915a56d 100644
--- a/tools/configure/configureapp.cpp
+++ b/tools/configure/configureapp.cpp
@@ -3267,8 +3267,14 @@ void Configure::generateConfigfiles()
if (qmakeConfFile.open(QFile::WriteOnly | QFile::Text)) {
QTextStream qmakeConfStream;
qmakeConfStream.setDevice(&qmakeConfFile);
+ // While QMAKESPEC_ORIGINAL being relative or absolute doesn't matter for the
+ // primary use of this variable by qmake to identify the original mkspec, the
+ // variable is also used for few special cases where the absolute path is required.
+ // Conversely, the include of the original qmake.conf must be done using relative path,
+ // as some Qt binary deployments are done in a manner that doesn't allow for patching
+ // the paths at the installation time.
qmakeConfStream << "QMAKESPEC_ORIGINAL=" << pltSpec << endl << endl;
- qmakeConfStream << "include(" << pltSpec << "/qmake.conf)" << endl;
+ qmakeConfStream << "include(" << "../" << spec << "/qmake.conf)" << endl << endl;
qmakeConfStream.flush();
qmakeConfFile.close();
}