summaryrefslogtreecommitdiffstats
path: root/mageia/dependencies/qt3/qt-3.3.6-fix-qfile-message-error.patch
diff options
context:
space:
mode:
Diffstat (limited to 'mageia/dependencies/qt3/qt-3.3.6-fix-qfile-message-error.patch')
-rw-r--r--mageia/dependencies/qt3/qt-3.3.6-fix-qfile-message-error.patch24
1 files changed, 24 insertions, 0 deletions
diff --git a/mageia/dependencies/qt3/qt-3.3.6-fix-qfile-message-error.patch b/mageia/dependencies/qt3/qt-3.3.6-fix-qfile-message-error.patch
new file mode 100644
index 000000000..e26fb89f2
--- /dev/null
+++ b/mageia/dependencies/qt3/qt-3.3.6-fix-qfile-message-error.patch
@@ -0,0 +1,24 @@
+--- qt-x11-free-3.3.6/src/tools/qfile_unix.cpp-- 2006-07-31 09:03:52.000000000 +0200
++++ qt-x11-free-3.3.6/src/tools/qfile_unix.cpp 2006-07-31 09:06:52.000000000 +0200
+@@ -164,8 +164,9 @@
+ bool QFile::open( int m )
+ {
+ if ( isOpen() ) { // file already open
+-#if defined(QT_CHECK_STATE)
+- qWarning( "QFile::open: File already open" );
++#if defined(QT_CHECK_STATE)
++ QString error = QString("QFile::open: File (%1) already open").arg(fn);
++ qWarning( error );
+ #endif
+ return FALSE;
+ }
+@@ -179,7 +180,8 @@
+ setMode( m );
+ if ( !(isReadable() || isWritable()) ) {
+ #if defined(QT_CHECK_RANGE)
+- qWarning( "QFile::open: File access not specified" );
++ QString error = QString("QFile::open: File access (%1) not specified").arg(fn);
++ qWarning( error );
+ #endif
+ return FALSE;
+ }