[KBear-cvs] kbear/kbear/plugins/dirsynchplugin dirsynchplugin.cpp,1.1,1.2 dirsynchwidget.cpp,1.2,1.3
Brought to you by:
kbjorn
From: <fri...@us...> - 2003-11-27 16:10:27
|
Update of /cvsroot/kbear/kbear/kbear/plugins/dirsynchplugin In directory sc8-pr-cvs1:/tmp/cvs-serv27687/kbear/plugins/dirsynchplugin Modified Files: dirsynchplugin.cpp dirsynchwidget.cpp Log Message: Renamed strings containing "directory" to "folder" for usability reasons. Index: dirsynchplugin.cpp =================================================================== RCS file: /cvsroot/kbear/kbear/kbear/plugins/dirsynchplugin/dirsynchplugin.cpp,v retrieving revision 1.1 retrieving revision 1.2 diff -C2 -d -r1.1 -r1.2 *** dirsynchplugin.cpp 27 Aug 2003 20:01:28 -0000 1.1 --- dirsynchplugin.cpp 27 Nov 2003 16:10:22 -0000 1.2 *************** *** 37,44 **** --- 37,48 ---- setInstance( DirSynchPluginFactory::instance() ); setupActions(); + mainWindow()->embedOutputPluginView( m_dirSynchWidget, i18n("Synchronisation"), + i18n("Synchronize a local and a remote folder.") ); } //----------------------------------------------- DirSynchPlugin::~DirSynchPlugin() { + mainWindow()->removeOutputPluginView( m_dirSynchWidget ); + delete m_dirSynchWidget; } //----------------------------------------------- *************** *** 46,50 **** //----------------------------------------------- void DirSynchPlugin::setupActions() { ! KAction *synchAction = new KAction( i18n("S&ynchronize current directory"), 0, 0, this, SLOT( slotSynchCurrent() ), actionCollection(), "synch_current" ); connect( KBearMainWindowInterface::getInstance()->mainWindow(), SIGNAL( localViewGotFocus( bool ) ), this, SLOT( slotLocalViewGotFocus( bool ) ) ); --- 50,55 ---- //----------------------------------------------- void DirSynchPlugin::setupActions() { ! KAction *synchAction = new KAction( i18n("S&ynchronize current folder"), 0, 0, this, SLOT( slotSynchCurrent() ), ! actionCollection(), "synch_current" ); connect( KBearMainWindowInterface::getInstance()->mainWindow(), SIGNAL( localViewGotFocus( bool ) ), this, SLOT( slotLocalViewGotFocus( bool ) ) ); *************** *** 53,57 **** //----------------------------------------------- void DirSynchPlugin::slotSynchCurrent() { ! m_dirSynchWidget->show(); } //----------------------------------------------- --- 58,62 ---- //----------------------------------------------- void DirSynchPlugin::slotSynchCurrent() { ! // m_dirSynchWidget->show(); } //----------------------------------------------- Index: dirsynchwidget.cpp =================================================================== RCS file: /cvsroot/kbear/kbear/kbear/plugins/dirsynchplugin/dirsynchwidget.cpp,v retrieving revision 1.2 retrieving revision 1.3 diff -C2 -d -r1.2 -r1.3 *** dirsynchwidget.cpp 30 Aug 2003 21:41:01 -0000 1.2 --- dirsynchwidget.cpp 27 Nov 2003 16:10:23 -0000 1.3 *************** *** 27,30 **** --- 27,31 ---- #include <kiconloader.h> #include <kprogress.h> + #include <kmessagebox.h> #include <kdebug.h> ////////////////////////////////////////////////////////////////////// *************** *** 36,39 **** --- 37,42 ---- #include "dirsynchtreeview.h" #include "dirsynchtreebranch.h" + #include "dirsynchlocaldirlister.h" + #include "dirsynchremotedirlister.h" #include "kbearchildviewiface.h" #include "kbearmainwiniface.h" *************** *** 45,49 **** : QWidget(parent), m_totalSize( 0 ), m_totalFiles( 0 ), m_remoteBranchFinished( false ), m_localBranchFinished( false ), ! m_connectedTimer( new QTimer(this) ) { setupGUI(); --- 48,52 ---- : QWidget(parent), m_totalSize( 0 ), m_totalFiles( 0 ), m_remoteBranchFinished( false ), m_localBranchFinished( false ), ! m_initialized( false ), m_connectedTimer( new QTimer(this) ) { setupGUI(); *************** *** 59,98 **** QLabel *localdir = new QLabel( this ); ! localdir->setText( i18n("Local directory:") ); layout->addWidget( localdir, 0, 0 ); m_localDirLabel = new QLabel( this ); layout->addWidget( m_localDirLabel, 1, 0 ); ! m_localView = new DirSynchTreeView( this ); ! m_localView->setSizePolicy( QSizePolicy::Preferred, QSizePolicy::MinimumExpanding ); layout->addMultiCellWidget( m_localView, 2, 6, 0, 0 ); m_synchFromLocalButton = new KPushButton( this ); ! m_synchFromLocalButton->setSizePolicy( QSizePolicy( (QSizePolicy::SizeType)1, (QSizePolicy::SizeType)0, 0, 0, m_synchFromLocalButton->sizePolicy().hasHeightForWidth() ) ); m_synchFromLocalButton->setPixmap( BarIcon("2rightarrow") ); ! QToolTip::add( m_synchFromLocalButton, i18n( "Push this button if you want to update the remote directory." ) ); ! QWhatsThis::add( m_synchFromLocalButton, i18n( "Push this button if you want to update the remote directory." ) ); layout->addWidget( m_synchFromLocalButton, 2, 1 ); m_synchFromRemoteButton = new KPushButton( this ); ! m_synchFromRemoteButton->setSizePolicy( QSizePolicy( (QSizePolicy::SizeType)1, (QSizePolicy::SizeType)0, 0, 0, m_synchFromRemoteButton->sizePolicy().hasHeightForWidth() ) ); m_synchFromRemoteButton->setPixmap( BarIcon("2leftarrow") ); ! QToolTip::add( m_synchFromRemoteButton, i18n( "Push this button if you want to update the local directory." ) ); ! QWhatsThis::add( m_synchFromRemoteButton, i18n( "Push this button if you want to update the local directory." ) ); layout->addWidget( m_synchFromRemoteButton, 3, 1 ); m_synchSelectedFromLocalButton = new KPushButton( this ); ! m_synchSelectedFromLocalButton->setSizePolicy( QSizePolicy( (QSizePolicy::SizeType)1, (QSizePolicy::SizeType)0, 0, 0, m_synchSelectedFromLocalButton->sizePolicy().hasHeightForWidth() ) ); m_synchSelectedFromLocalButton->setPixmap( BarIcon("forward") ); ! QToolTip::add( m_synchSelectedFromLocalButton, i18n( "Push this button if you want to update the selected remote file/directory." ) ); ! QWhatsThis::add( m_synchSelectedFromLocalButton, i18n( "Push this button if you want to update the selected remote file/directory." ) ); m_synchSelectedFromLocalButton->setEnabled( false ); layout->addWidget( m_synchSelectedFromLocalButton, 4, 1 ); m_synchSelectedFromRemoteButton = new KPushButton( this ); ! m_synchSelectedFromRemoteButton->setSizePolicy( QSizePolicy( (QSizePolicy::SizeType)1, (QSizePolicy::SizeType)0, 0, 0, m_synchSelectedFromRemoteButton->sizePolicy().hasHeightForWidth() ) ); m_synchSelectedFromRemoteButton->setPixmap( BarIcon("back") ); ! QToolTip::add( m_synchSelectedFromRemoteButton, i18n( "Push this button if you want to update the selected local file/directory." ) ); ! QWhatsThis::add( m_synchSelectedFromRemoteButton, i18n( "Push this button if you want to update the selected local file/directory." ) ); m_synchSelectedFromRemoteButton->setEnabled( false ); layout->addWidget( m_synchSelectedFromRemoteButton, 5, 1 ); --- 62,109 ---- QLabel *localdir = new QLabel( this ); ! localdir->setText( i18n("Local folder:") ); layout->addWidget( localdir, 0, 0 ); m_localDirLabel = new QLabel( this ); layout->addWidget( m_localDirLabel, 1, 0 ); ! m_localView = new DirSynchTreeView( this, "LocalDirSynchTreeView" ); ! m_localView->setSizePolicy( QSizePolicy::Preferred, QSizePolicy::Preferred ); // 2: Minimum expanding layout->addMultiCellWidget( m_localView, 2, 6, 0, 0 ); m_synchFromLocalButton = new KPushButton( this ); ! m_synchFromLocalButton->setSizePolicy( QSizePolicy( (QSizePolicy::SizeType)1, (QSizePolicy::SizeType)0, 0, 0, ! m_synchFromLocalButton->sizePolicy().hasHeightForWidth() ) ); m_synchFromLocalButton->setPixmap( BarIcon("2rightarrow") ); ! QToolTip::add( m_synchFromLocalButton, i18n( "Push this button if you want to update the remote folder." ) ); ! QWhatsThis::add( m_synchFromLocalButton, i18n( "Push this button if you want to update the remote folder." ) ); layout->addWidget( m_synchFromLocalButton, 2, 1 ); m_synchFromRemoteButton = new KPushButton( this ); ! m_synchFromRemoteButton->setSizePolicy( QSizePolicy( (QSizePolicy::SizeType)1, (QSizePolicy::SizeType)0, 0, 0, ! m_synchFromRemoteButton->sizePolicy().hasHeightForWidth() ) ); m_synchFromRemoteButton->setPixmap( BarIcon("2leftarrow") ); ! QToolTip::add( m_synchFromRemoteButton, i18n( "Push this button if you want to update the local folder." ) ); ! QWhatsThis::add( m_synchFromRemoteButton, i18n( "Push this button if you want to update the local folder." ) ); layout->addWidget( m_synchFromRemoteButton, 3, 1 ); m_synchSelectedFromLocalButton = new KPushButton( this ); ! m_synchSelectedFromLocalButton->setSizePolicy( QSizePolicy( (QSizePolicy::SizeType)1, (QSizePolicy::SizeType)0, 0, 0, ! m_synchSelectedFromLocalButton->sizePolicy().hasHeightForWidth() ) ); m_synchSelectedFromLocalButton->setPixmap( BarIcon("forward") ); ! QToolTip::add( m_synchSelectedFromLocalButton, i18n( "Push this button if you want to update the selected remote" ! "file/folder." ) ); ! QWhatsThis::add( m_synchSelectedFromLocalButton, i18n( "Push this button if you want to update the selected remote" ! "file/folder." ) ); m_synchSelectedFromLocalButton->setEnabled( false ); layout->addWidget( m_synchSelectedFromLocalButton, 4, 1 ); m_synchSelectedFromRemoteButton = new KPushButton( this ); ! m_synchSelectedFromRemoteButton->setSizePolicy( QSizePolicy( (QSizePolicy::SizeType)1, (QSizePolicy::SizeType)0, 0, 0, ! m_synchSelectedFromRemoteButton->sizePolicy().hasHeightForWidth() ) ); m_synchSelectedFromRemoteButton->setPixmap( BarIcon("back") ); ! QToolTip::add( m_synchSelectedFromRemoteButton, i18n( "Push this button if you want to update the selected local" ! "file/folder." ) ); ! QWhatsThis::add( m_synchSelectedFromRemoteButton, i18n( "Push this button if you want to update the selected local" ! "file/folder." ) ); m_synchSelectedFromRemoteButton->setEnabled( false ); layout->addWidget( m_synchSelectedFromRemoteButton, 5, 1 ); *************** *** 107,116 **** QLabel *remotedir = new QLabel( this ); ! remotedir->setText( i18n("Remote directory:") ); layout->addWidget( remotedir, 0, 2 ); m_remoteDirLabel = new QLabel( this ); layout->addWidget( m_remoteDirLabel, 1, 2 ); ! m_remoteView = new DirSynchTreeView( this ); m_remoteView->setSizePolicy( QSizePolicy::Preferred, QSizePolicy::MinimumExpanding ); layout->addMultiCellWidget( m_remoteView, 2, 6, 2, 2 ); --- 118,127 ---- QLabel *remotedir = new QLabel( this ); ! remotedir->setText( i18n("Remote folder:") ); layout->addWidget( remotedir, 0, 2 ); m_remoteDirLabel = new QLabel( this ); layout->addWidget( m_remoteDirLabel, 1, 2 ); ! m_remoteView = new DirSynchTreeView( this, "RemoteDirSynchTreeView" ); m_remoteView->setSizePolicy( QSizePolicy::Preferred, QSizePolicy::MinimumExpanding ); layout->addMultiCellWidget( m_remoteView, 2, 6, 2, 2 ); *************** *** 130,134 **** m_directoryLabel = new QLabel( m_statusBarLower, "DirectoryLabel"); ! QWhatsThis::add( m_directoryLabel, i18n("This field displays the number of directories and files in current directory.") ); m_directoryLabel->setFrameStyle ( QFrame::StyledPanel | QFrame::Sunken ); --- 141,145 ---- m_directoryLabel = new QLabel( m_statusBarLower, "DirectoryLabel"); ! QWhatsThis::add( m_directoryLabel, i18n("This field displays the number of folders and files in current folder.") ); m_directoryLabel->setFrameStyle ( QFrame::StyledPanel | QFrame::Sunken ); *************** *** 157,195 **** //----------------------------------------------- void DirSynchWidget::showEvent( QShowEvent* se ) { ! KBearChildViewIface *view = const_cast<KBearChildViewIface*>(KBearMainWindowInterface::getInstance()->getCurrentView()); ! if( !view->isLocal() ) { m_remoteSiteInfo = view->siteInfo(); ! QString dir = KFileDialog::getExistingDirectory( QDir::homeDirPath(), this, ! i18n("Select the local directory you want to synchronize" ) ); ! if( m_localBranch ) ! m_localView->removeBranch( m_localBranch ); ! m_localBranch = static_cast<DirSynchTreeBranch*>(m_localView->addBranch( KURL(dir), dir ) ); ! m_localBranch->setChildRecurse(); ! m_localBranch->setAutoUpdate( true ); ! static_cast<DirSynchTreeBranch*>(m_localBranch)->setLocal( true ); ! if( m_remoteBranch ) ! m_remoteView->removeBranch( m_remoteBranch ); ! KURL url = KURL(view->currentURL()); ! if( url.user() == "anonymous" ) ! url.setPass( "anonymous@" ); ! m_remoteBranch = static_cast<DirSynchTreeBranch*>(m_remoteView->addBranch( url, view->currentURL() ) ); ! m_remoteBranch->setAutoUpdate( true ); ! static_cast<DirSynchTreeBranch*>(m_remoteBranch)->setLocal( false ); ! static_cast<DirSynchTreeBranch*>(m_remoteBranch)->setSiteInfo( m_remoteSiteInfo ); setupConnections(); ! m_remoteBranch->setOpen(); ! m_localBranch->setOpen(); ! } else return; QWidget::showEvent( se ); } //----------------------------------------------- void DirSynchWidget::closeEvent( QCloseEvent* ce ) { ! m_localView->removeBranch( m_localBranch ); ! m_remoteView->removeBranch( m_remoteBranch ); QWidget::closeEvent( ce ); } //----------------------------------------------- void DirSynchWidget::setupConnections() { ! connect( m_remoteBranch, SIGNAL( finishedLoading( KFileTreeBranch* ) ), this, SLOT( slotFinishedLoading( KFileTreeBranch* ) ) ); connect( m_localBranch, SIGNAL( finishedLoading( KFileTreeBranch* ) ), --- 168,204 ---- //----------------------------------------------- void DirSynchWidget::showEvent( QShowEvent* se ) { ! KBearChildViewIface *view = const_cast<KBearChildViewIface*>(KBearMainWindowInterface::getInstance()->getCurrentView()); ! if( m_initialized ) ! return; ! ! if( !view->isLocal() ) { m_remoteSiteInfo = view->siteInfo(); ! // QString dir = KFileDialog::getExistingDirectory( QDir::homeDirPath(), 0, ! // i18n("Select the local folder you want to synchronize" ) ); ! #warning Find out why KFileDialog::getExistingDirectory does not work!!! ! m_localSiteInfo = SiteInfo( QString("/home/friti/") ); ! m_localView->setSiteInfo( m_localSiteInfo ); ! m_remoteView->setSiteInfo( m_remoteSiteInfo ); ! m_localView->setDirLister( new DirSynchLocalDirLister( m_localView ) ); setupConnections(); ! m_initialized = true; ! } else { ! KMessageBox::information( 0, i18n("Please select the remote folder you want to synchronize with.") ); ! m_initialized = false; ! close(); ! return; ! } ! QWidget::showEvent( se ); } //----------------------------------------------- void DirSynchWidget::closeEvent( QCloseEvent* ce ) { ! // m_localView->removeBranch( m_localBranch ); ! // m_remoteView->removeBranch( m_remoteBranch ); QWidget::closeEvent( ce ); } //----------------------------------------------- void DirSynchWidget::setupConnections() { ! /* connect( m_remoteBranch, SIGNAL( finishedLoading( KFileTreeBranch* ) ), this, SLOT( slotFinishedLoading( KFileTreeBranch* ) ) ); connect( m_localBranch, SIGNAL( finishedLoading( KFileTreeBranch* ) ), *************** *** 201,204 **** --- 210,215 ---- connect( m_remoteBranch, SIGNAL( progress( int ) ), this, SLOT( slotProgress( int ) ) ); + connect( m_remoteBranch, SIGNAL( progress( int ) ), m_progress, SLOT( setProgress( int ) ) ); + connect( m_remoteBranch, SIGNAL( connected() ), this, SLOT( slotConnected() ) ); connect( m_localView->verticalScrollBar(), SIGNAL( valueChanged( int ) ), *************** *** 217,221 **** m_remoteView->horizontalScrollBar(), SLOT( setValue( int ) ) ); connect( m_remoteView->horizontalScrollBar(), SIGNAL( sliderMoved( int ) ), ! m_localView->horizontalScrollBar(), SLOT( setValue( int ) ) ); connect( m_connectedTimer, SIGNAL( timeout() ), this, SLOT( slotTimerUpdate() ) ); --- 228,232 ---- m_remoteView->horizontalScrollBar(), SLOT( setValue( int ) ) ); connect( m_remoteView->horizontalScrollBar(), SIGNAL( sliderMoved( int ) ), ! m_localView->horizontalScrollBar(), SLOT( setValue( int ) ) ); */ connect( m_connectedTimer, SIGNAL( timeout() ), this, SLOT( slotTimerUpdate() ) ); *************** *** 264,268 **** //----------------------------------------------- void DirSynchWidget::slotFinishedLoading( KFileTreeBranch *branch ) { ! if( branch == m_localBranch ) { m_localBranchFinished = true; KURL curUrl; --- 275,279 ---- //----------------------------------------------- void DirSynchWidget::slotFinishedLoading( KFileTreeBranch *branch ) { ! /* if( branch == m_localBranch ) { m_localBranchFinished = true; KURL curUrl; *************** *** 274,279 **** } else if( branch == m_remoteBranch ) { ! if( !m_remoteBranchFinished) ! slotConnected(); m_remoteBranchFinished = true; KURL curUrl; --- 285,290 ---- } else if( branch == m_remoteBranch ) { ! // if( !m_remoteBranchFinished) ! // slotConnected(); m_remoteBranchFinished = true; KURL curUrl; *************** *** 292,300 **** slotSetStatusBarText( i18n( "No Operation in Progress" ) ); kdDebug()<<"DirSynchWidget::slotFinishedLoading: After checkDiff"<<endl; ! } } //----------------------------------------------- void DirSynchWidget::checkDiff() { ! if( ! m_localView || ! m_remoteView ) return; --- 303,311 ---- slotSetStatusBarText( i18n( "No Operation in Progress" ) ); kdDebug()<<"DirSynchWidget::slotFinishedLoading: After checkDiff"<<endl; ! } */ } //----------------------------------------------- void DirSynchWidget::checkDiff() { ! /* if( ! m_localView || ! m_remoteView ) return; *************** *** 323,331 **** remoteItem->setDiffFile( localItem->fileItem() ); } ! } } //----------------------------------------------- DirSynchTreeViewItem* DirSynchWidget::findCorrespondingItem( DirSynchTreeViewItem* item ) { ! if( ! item || (m_localView->childCount() == 0) || (m_remoteView->childCount() == 0) ) return 0L; DirSynchTreeBranch* branch = 0L; --- 334,342 ---- remoteItem->setDiffFile( localItem->fileItem() ); } ! } */ } //----------------------------------------------- DirSynchTreeViewItem* DirSynchWidget::findCorrespondingItem( DirSynchTreeViewItem* item ) { ! /* if( ! item || (m_localView->childCount() == 0) || (m_remoteView->childCount() == 0) ) return 0L; DirSynchTreeBranch* branch = 0L; *************** *** 351,387 **** } KURL url( branch->rootUrl().url(+1) + relURL ); ! return dynamic_cast<DirSynchTreeViewItem*>( branch->findTVIByURL( url ) ); } //----------------------------------------------- void DirSynchWidget::slotSynchSelectedFromRemote() { ! KURL src = m_remoteView->currentURL(); KURL dest; ! /* if( m_localView->currentURL().isValid() ) ! if( m_localView->currentKFileTreeViewItem()->fileItem()->isDir() ) ! dest = m_localView->currentURL().path(); ! else ! dest = m_localView->currentURL().directory(); ! else */ dest = m_localBranch->rootUrl(); KURL root = m_remoteBranch->rootUrl(); ! synch( m_remoteSiteInfo.ID(), -1, src, dest, root ); } //----------------------------------------------- void DirSynchWidget::slotSynchSelectedFromLocal() { ! KURL src = m_localView->currentURL(); KURL dest; ! /* if( m_remoteView->currentURL().isValid() ) ! if( m_remoteView->currentKFileTreeViewItem()->fileItem()->isDir() ) ! dest = m_remoteView->currentURL().path(); ! else ! dest = m_remoteView->currentURL().directory(); ! else */ dest = m_remoteBranch->rootUrl(); KURL root = m_localBranch->rootUrl(); ! synch( -1, -1, src, dest, root ); } //----------------------------------------------- void DirSynchWidget::slotSynchFromRemote() { ! KURL src = m_remoteBranch->rootUrl(); src.adjustPath(+1); KURL dest; --- 362,398 ---- } KURL url( branch->rootUrl().url(+1) + relURL ); ! return dynamic_cast<DirSynchTreeViewItem*>( branch->findTVIByURL( url ) ); */ } //----------------------------------------------- void DirSynchWidget::slotSynchSelectedFromRemote() { ! /* KURL src = m_remoteView->currentURL(); KURL dest; ! // if( m_localView->currentURL().isValid() ) ! // if( m_localView->currentKFileTreeViewItem()->fileItem()->isDir() ) ! // dest = m_localView->currentURL().path(); ! // else ! // dest = m_localView->currentURL().directory(); ! // else dest = m_localBranch->rootUrl(); KURL root = m_remoteBranch->rootUrl(); ! synch( m_remoteSiteInfo.ID(), -1, src, dest, root ); */ } //----------------------------------------------- void DirSynchWidget::slotSynchSelectedFromLocal() { ! /* KURL src = m_localView->currentURL(); KURL dest; ! // if( m_remoteView->currentURL().isValid() ) ! // if( m_remoteView->currentKFileTreeViewItem()->fileItem()->isDir() ) ! // dest = m_remoteView->currentURL().path(); ! // else ! // dest = m_remoteView->currentURL().directory(); ! // else dest = m_remoteBranch->rootUrl(); KURL root = m_localBranch->rootUrl(); ! synch( -1, -1, src, dest, root ); */ } //----------------------------------------------- void DirSynchWidget::slotSynchFromRemote() { ! /* KURL src = m_remoteBranch->rootUrl(); src.adjustPath(+1); KURL dest; *************** *** 393,401 **** dest = m_localView->currentURL().directory(); } ! synch( m_remoteSiteInfo.ID(), -1, src, dest, root ); } //----------------------------------------------- void DirSynchWidget::slotSynchFromLocal() { ! KURL src = m_localBranch->rootUrl(); src.adjustPath(+1); KURL dest; --- 404,412 ---- dest = m_localView->currentURL().directory(); } ! synch( m_remoteSiteInfo.ID(), -1, src, dest, root ); */ } //----------------------------------------------- void DirSynchWidget::slotSynchFromLocal() { ! /* KURL src = m_localBranch->rootUrl(); src.adjustPath(+1); KURL dest; *************** *** 407,411 **** dest = m_remoteView->currentURL().directory(); } ! synch( -1, -1, src, dest, root ); } //----------------------------------------------- --- 418,422 ---- dest = m_remoteView->currentURL().directory(); } ! synch( -1, -1, src, dest, root ); */ } //----------------------------------------------- *************** *** 422,426 **** this, SLOT( slotProcessedFiles( KIO::Job*, unsigned long ) ) ); job->slotStart(); ! delete job; slotSetStatusBarText( i18n("Preparing for synchronisation ...") ); } --- 433,437 ---- this, SLOT( slotProcessedFiles( KIO::Job*, unsigned long ) ) ); job->slotStart(); ! // delete job; slotSetStatusBarText( i18n("Preparing for synchronisation ...") ); } |