diff options
Diffstat (limited to 'libtdepim/kaddrbook.cpp')
| -rw-r--r-- | libtdepim/kaddrbook.cpp | 10 |
1 files changed, 3 insertions, 7 deletions
diff --git a/libtdepim/kaddrbook.cpp b/libtdepim/kaddrbook.cpp index cb831d41..2752f95e 100644 --- a/libtdepim/kaddrbook.cpp +++ b/libtdepim/kaddrbook.cpp @@ -16,7 +16,6 @@ #include <kdebug.h> #include <tdelocale.h> #include <tdemessagebox.h> -#include <tdeversion.h> #include <tdeabc/resource.h> #include <tdeabc/stdaddressbook.h> #include <tdeabc/vcardconverter.h> @@ -45,7 +44,6 @@ void KAddrBookExternal::openEmail( const TQString &addr, TQWidget *parent ) { // if we have to reload the address book then we should also wait until // it's completely reloaded -#if KDE_IS_VERSION(3,4,89) // This ugly hack will be removed in 4.0 while ( !ab->loadingHasFinished() ) { TQApplication::eventLoop()->processEvents( TQEventLoop::ExcludeUserInput ); @@ -53,7 +51,7 @@ void KAddrBookExternal::openEmail( const TQString &addr, TQWidget *parent ) { // use sleep here to reduce cpu usage usleep( 100 ); } -#endif + // End of ugly hack TDEABC::Addressee::List addressees = ab->findByEmail( email ); @@ -98,7 +96,6 @@ void KAddrBookExternal::addEmail( const TQString& addr, TQWidget *parent) { // if we have to reload the address book then we should also wait until // it's completely reloaded -#if KDE_IS_VERSION(3,4,89) // This ugly hack will be removed in 4.0 while ( !ab->loadingHasFinished() ) { TQApplication::eventLoop()->processEvents( TQEventLoop::ExcludeUserInput ); @@ -106,7 +103,7 @@ void KAddrBookExternal::addEmail( const TQString& addr, TQWidget *parent) { // use sleep here to reduce cpu usage usleep( 100 ); } -#endif + // End of ugly hack TDEABC::Addressee::List addressees = ab->findByEmail( email ); @@ -255,7 +252,6 @@ TQString KAddrBookExternal::expandDistributionList( const TQString& listName ) TDEABC::Resource* KAddrBookExternal::selectResourceForSaving( TDEABC::AddressBook *addressBook ) { -#if KDE_IS_VERSION(3,4,89) // This ugly hack will be removed in 4.0 while ( !addressBook->loadingHasFinished() ) { TQApplication::eventLoop()->processEvents( TQEventLoop::ExcludeUserInput ); @@ -263,7 +259,7 @@ TDEABC::Resource* KAddrBookExternal::selectResourceForSaving( TDEABC::AddressBoo // use sleep here to reduce cpu usage usleep( 100 ); } -#endif + // End of ugly hack // Select a resource TQPtrList<TDEABC::Resource> tdeabcResources = addressBook->resources(); |
