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

List:       koffice
Subject:    Re: koTemplateCreateDia.cc patch
From:       Tom Verbeure <tom.verbeure () chello ! be>
Date:       2000-01-29 15:08:00
[Download RAW message or body]

Now WITH attachment. :-)

Tom


Tom Verbeure wrote:
> 
> Hello All,
> 
> not sure where I have to post this (should I mail to the owner of the
> file?), but this is a patch to fix a lock-up in the "Create Template
> from Document" dialog box in Kword and others.
> Basically, when you were clicking any field that was not the directory
> in which the template had to be saved (eg. clicking on a document
> template name), the whole thing got into an infinite recursive loop.
> 
> Regards,
> Tom
["koTemplateCreateDia.cc.patch" (text/plain)]

--- koTemplateCreateDia.orig.cc	Sat Jan 29 15:46:02 2000
+++ koTemplateCreateDia.cc	Sat Jan 29 15:53:15 2000
@@ -233,7 +233,7 @@
 	    if ( it.current()->parent() &&
 		 !it.current()->parent()->parent() ) {
 		folderList->setSelected( it.current(), TRUE );
-		folderList->setCurrentItem( item );
+		folderList->setCurrentItem( it.current() );
 		folderList->setSelected( item, FALSE );
 		return;
 	    }
@@ -243,7 +243,7 @@
 	    if ( it.current()->parent() &&
 		 !it.current()->parent()->parent() ) {
 		folderList->setSelected( it.current(), TRUE );
-		folderList->setCurrentItem( item );
+		folderList->setCurrentItem( it.current() );
 		folderList->setSelected( item, FALSE );
 		return;
 	    }


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

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