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

List:       kde-commits
Subject:    KDE/kdebase/libkonq
From:       Kevin Ottens <ervin () kde ! org>
Date:       2007-03-12 20:49:23
Message-ID: 1173732563.778888.16812.nullmailer () svn ! kde ! org
[Download RAW message or body]

SVN commit 641912 by ervin:

Don't emit finished(), use emitResult() as appropriate instead.


 M  +2 -4      konq_undo.cc  


--- trunk/KDE/kdebase/libkonq/konq_undo.cc #641911:641912
@@ -76,7 +76,7 @@
 
     virtual void kill( bool ) { KonqUndoManager::self()->stopUndo( true ); \
KIO::Job::doKill(); }  
-    void emitFinished() { emit finished(this, progressId()); }
+    void emitResult() { KIO::Job::emitResult(); }
 };
 
 KonqCommandRecorder::KonqCommandRecorder( KonqUndoManager::CommandType op, const \
KUrl::List &src, const KUrl &dst, KIO::Job *job ) @@ -366,7 +366,6 @@
 
 void KonqUndoManager::slotResult( KJob *job )
 {
-    d->m_undoJob->emitFinished();
     d->m_currentJob = 0;
     if ( job->error() )
     {
@@ -540,8 +539,7 @@
         if ( d->m_undoJob )
         {
             kDebug(1203) << "KonqUndoManager::stepRemovingDirectories deleting \
                undojob" << endl;
-            d->m_undoJob->emitFinished();
-            delete d->m_undoJob;
+            d->m_undoJob->emitResult();
             d->m_undoJob = 0;
         }
         QList<KUrl>::ConstIterator it = d->m_dirsToUpdate.begin();


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

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