[prev in list] [next in list] [prev in thread] [next in thread] 

List:       kde-commits
Subject:    KDE/kdelibs/kioslave/file
From:       Nikolas Zimmermann <wildfox () kde ! org>
Date:       2006-08-28 15:34:16
Message-ID: 1156779256.404035.469.nullmailer () svn ! kde ! org
[Download RAW message or body]

SVN commit 578163 by wildfox:

Apply the same fix David used for kio_http, to get rid of:
"QSocketNotifier: Can only be used with threads started with QThread"


 M  +3 -0      file.cc  


--- trunk/KDE/kdelibs/kioslave/file/file.cc #578162:578163
@@ -65,6 +65,7 @@
 
 #include <QByteArray>
 #include <QVarLengthArray>
+#include <QCoreApplication>
 #include <qdatetime.h>
 #include <qregexp.h>
 
@@ -107,6 +108,8 @@
 extern "C" int KDE_EXPORT kdemain( int argc, char **argv )
 {
   KLocale::setMainCatalog("kdelibs");
+  
+  QCoreApplication app( argc, argv ); // needed for QSocketNotifier
   KInstance instance( "kio_file" );
   ( void ) KGlobal::locale();
 
[prev in list] [next in list] [prev in thread] [next in thread] 

Configure | About | News | Add a list | Sponsored by KoreLogic