Gentoo Archives: gentoo-commits

From: "Alex Alexander (wired)" <wired@g.o>
To: gentoo-commits@l.g.o
Subject: [gentoo-commits] gentoo-x86 commit in x11-libs/qt-core/files: qt-core-4.8.0-qurl-regression-fix.patch
Date: Sun, 29 Jan 2012 17:00:16
Message-Id: 20120129170002.13A692004C@flycatcher.gentoo.org
1 wired 12/01/29 17:00:02
2
3 Added: qt-core-4.8.0-qurl-regression-fix.patch
4 Log:
5 version bump
6
7 (Portage version: 2.2.0_alpha84/cvs/Linux x86_64)
8
9 Revision Changes Path
10 1.1 x11-libs/qt-core/files/qt-core-4.8.0-qurl-regression-fix.patch
11
12 file : http://sources.gentoo.org/viewvc.cgi/gentoo-x86/x11-libs/qt-core/files/qt-core-4.8.0-qurl-regression-fix.patch?rev=1.1&view=markup
13 plain: http://sources.gentoo.org/viewvc.cgi/gentoo-x86/x11-libs/qt-core/files/qt-core-4.8.0-qurl-regression-fix.patch?rev=1.1&content-type=text/plain
14
15 Index: qt-core-4.8.0-qurl-regression-fix.patch
16 ===================================================================
17 QUrl.toLocalfile regression fix (incompatible change from Qt 4.7)
18
19 http://mail.kde.org/pipermail/release-team/2011-December/005415.html
20 https://bugzilla.redhat.com/show_bug.cgi?id=749213
21 https://bugreports.qt.nokia.com/browse/QTBUG-22382
22
23 --- qt-everywhere-opensource-src-4.8.0/src/corelib/io/qurl.cpp.toLocalFile
24 +++ qt-everywhere-opensource-src-4.8.0/src/corelib/io/qurl.cpp
25 @@ -6158,7 +6158,8 @@ QUrl QUrl::fromLocalFile(const QString &
26 QString QUrl::toLocalFile() const
27 {
28 // the call to isLocalFile() also ensures that we're parsed
29 - if (!isLocalFile())
30 + // Treat URLs with no scheme as local for backward compatibility
31 + if (!isLocalFile() && (!d || !d->scheme.isEmpty()))
32 return QString();
33
34 QString tmp;