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

List:       kde-commits
Subject:    kdepim/korganizer
From:       Bram Schoenmakers <bramschoenmakers () kde ! nl>
Date:       2005-03-24 18:39:26
Message-ID: 20050324183926.BE91D3EE () office ! kde ! org
[Download RAW message or body]

CVS commit by bram: 

The structure of this code was messed up:

o Make it compile now
o todo->addAttachment(...) is placed in the beginChange() - endChange() block


  M +8 -7      kotodoview.cpp   1.199


--- kdepim/korganizer/kotodoview.cpp  #1.198:1.199
@@ -256,5 +256,7 @@ void KOTodoListView::contentsDropEvent( 
       kdDebug(5850) << "Dropped : " << text << endl;
       Todo*todo = todoi->todo();
+      if( mChanger->beginChange( todo ) ) {
       Todo*oldtodo = todo->clone();
+
       if( text.startsWith( "file:" ) ) {
         todo->addAttachment( new Attachment( text ) );
@@ -261,5 +263,4 @@ void KOTodoListView::contentsDropEvent( 
       } else {
         QStringList emails = KPIM::splitEmailAddrList( text );
-        if ( mChanger->beginChange( todo ) ) {
           for(QStringList::ConstIterator it = emails.begin();it!=emails.end();++it) {
             kdDebug(5850) << " Email: " << (*it) << endl;


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

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