summaryrefslogtreecommitdiffstats
path: root/mageia/dependencies/qt3/qt-3.3.6-fix-qfile-message-error2.patch
diff options
context:
space:
mode:
authorFrancois Andriot <francois.andriot@free.fr>2012-08-02 11:13:00 +0200
committerFrancois Andriot <francois.andriot@free.fr>2012-08-02 11:13:00 +0200
commit0704427510fa18d90170cf13d1fd81e446a1d3b0 (patch)
treef88eb0400bf4608d95808aeea656185634b9c0fc /mageia/dependencies/qt3/qt-3.3.6-fix-qfile-message-error2.patch
parent9f07f141355cd13d40a39a2f123c6516209c5fcf (diff)
downloadtde-packaging-0704427510fa18d90170cf13d1fd81e446a1d3b0.tar.gz
tde-packaging-0704427510fa18d90170cf13d1fd81e446a1d3b0.zip
Mageia: initial QT3 version for TDE 3.5.13
Diffstat (limited to 'mageia/dependencies/qt3/qt-3.3.6-fix-qfile-message-error2.patch')
-rw-r--r--mageia/dependencies/qt3/qt-3.3.6-fix-qfile-message-error2.patch67
1 files changed, 67 insertions, 0 deletions
diff --git a/mageia/dependencies/qt3/qt-3.3.6-fix-qfile-message-error2.patch b/mageia/dependencies/qt3/qt-3.3.6-fix-qfile-message-error2.patch
new file mode 100644
index 000000000..4e0ffbe5a
--- /dev/null
+++ b/mageia/dependencies/qt3/qt-3.3.6-fix-qfile-message-error2.patch
@@ -0,0 +1,67 @@
+--- qt-x11-free-3.3.6/src/tools/qfile_unix.cpp-- 2006-08-10 09:55:59.000000000 +0200
++++ qt-x11-free-3.3.6/src/tools/qfile_unix.cpp 2006-08-10 10:06:42.000000000 +0200
+@@ -339,7 +339,8 @@
+ {
+ if ( isOpen() ) {
+ #if defined(QT_CHECK_RANGE)
+- qWarning( "QFile::open: File already open" );
++ QString error = QString("QFile::open: File (%1) already open").arg(fn);
++ qWarning( error );
+ #endif
+ return FALSE;
+ }
+@@ -411,7 +412,8 @@
+ {
+ if ( isOpen() ) {
+ #if defined(QT_CHECK_RANGE)
+- qWarning( "QFile::open: File already open" );
++ QString error = QString("QFile::open: File (%1) already open").arg(fn);
++ qWarning( error );
+ #endif
+ return FALSE;
+ }
+@@ -507,7 +509,8 @@
+ {
+ if ( !isOpen() ) {
+ #if defined(QT_CHECK_STATE)
+- qWarning( "QFile::at: File is not open" );
++ QString error = QString("QFile::at: File (%1) is not open").arg(fn);
++ qWarning( error );
+ #endif
+ return FALSE;
+ }
+@@ -563,11 +566,14 @@
+ #endif
+ #if defined(QT_CHECK_STATE)
+ if ( !isOpen() ) {
+- qWarning( "QFile::readBlock: File not open" );
++ QString error = QString("QFile::readBlock: File (%1) not open").arg(fn);
++ qWarning( error );
++
+ return -1;
+ }
+ if ( !isReadable() ) {
+- qWarning( "QFile::readBlock: Read operation not permitted" );
++ QString error = QString("QFile::readBlock: Read operation not permitted in file %1 ").arg(fn);
++ qWarning( error );
+ return -1;
+ }
+ #endif
+@@ -632,11 +638,15 @@
+ #endif
+ #if defined(QT_CHECK_STATE)
+ if ( !isOpen() ) { // file not open
+- qWarning( "QFile::writeBlock: File not open" );
++ QString error = QString("QFile::writeBlock: File (%1) not open").arg(fn);
++ qWarning( error );
++
+ return -1;
+ }
+ if ( !isWritable() ) { // writing not permitted
+- qWarning( "QFile::writeBlock: Write operation not permitted" );
++ QString error = QString("QFile::writeBlock: Write operation not permitted in file %1 ").arg(fn);
++ qWarning( error );
++
+ return -1;
+ }
+ #endif