[prev in list] [next in list] [prev in thread] [next in thread]
List: kde-commits
Subject: playground/office/kraft/src
From: Klaas Freitag <klaas () freisturz ! de>
Date: 2011-11-11 20:49:09
Message-ID: 20111111204909.90897AC88B () svn ! kde ! org
[Download RAW message or body]
SVN commit 1263701 by freitag:
make follow up document and copy document work again.
M +3 -2 portal.cpp
--- trunk/playground/office/kraft/src/portal.cpp #1263700:1263701
@@ -419,7 +419,7 @@
kDebug() << "doc identifier: "<< doc->docIdentifier() << endl;
wiz.setDocIdentifier( doc->docIdentifier() );
if ( wiz.exec() ) {
- DocGuardedPtr doc = DocumentMan::self()->createDocument( locId );
+ DocGuardedPtr doc = DocumentMan::self()->createDocument( dt.name(), locId );
doc->setDate( wiz.date() );
doc->setDocType( wiz.docType() );
doc->setWhiteboard( wiz.whiteboard() );
@@ -438,11 +438,12 @@
if ( id.isEmpty() ) {
return;
}
+ DocGuardedPtr oldDoc = DocumentMan::self()->openDocument( id );
KraftWizard wiz;
wiz.init();
if ( wiz.exec() ) {
- DocGuardedPtr doc = DocumentMan::self()->createDocument( id );
+ DocGuardedPtr doc = DocumentMan::self()->createDocument( oldDoc->docType(), id );
doc->setDate( wiz.date() );
doc->setDocType( wiz.docType() );
doc->setWhiteboard( wiz.whiteboard() );
[prev in list] [next in list] [prev in thread] [next in thread]
Configure |
About |
News |
Add a list |
Sponsored by KoreLogic