[Kstars-devel] kdeedu/kstars/kstars

Jason Harris kstars at 30doradus.org
Sun Mar 27 18:53:19 CEST 2005


CVS commit by harris: 

Allow compilation on KDE < 3.4 (KIO::CopyJob::setInteractive() doesn't 
exist before 3.4).  Thanks for pointing this out, Gaetano!

CCMAIL: kstars-devel at kde.org


  M +3 -0      thumbnailpicker.cpp   1.7


--- kdeedu/kstars/kstars/thumbnailpicker.cpp  #1.6:1.7
@@ -24,4 +24,5 @@
 #include <qrect.h>
 
+#include <kdeversion.h>
 #include <kpushbutton.h>
 #include <klistbox.h>
@@ -107,5 +108,7 @@ void ThumbnailPicker::slotFillList() {
                         ktf.unlink(); //just need filename
                         JobList.append( KIO::copy( u, KURL( tmpFile->name() ), false ) ); //false = no progress window
+#if KDE_IS_VERSION( 3, 3, 90 )
                         ((KIO::CopyJob*)JobList.current())->setInteractive( false ); // suppress error dialogs
+#endif
                         connect (JobList.current(), SIGNAL (result(KIO::Job *)), SLOT (downloadReady (KIO::Job *)));
 




More information about the Kstars-devel mailing list