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

List:       kde-commits
Subject:    koffice/kpresenter/part/pagelayout
From:       Thomas Zander <zander () kde ! org>
Date:       2009-09-01 11:51:14
Message-ID: 1251805874.454810.19140.nullmailer () svn ! kde ! org
[Download RAW message or body]

SVN commit 1018170 by zander:

Group the actions into one undo action.

BUG:205374

 M  +2 -0      KPrPlaceholders.cpp  


--- trunk/koffice/kpresenter/part/pagelayout/KPrPlaceholders.cpp #1018169:1018170
@@ -55,6 +55,7 @@
 {
     Q_ASSERT( m_initialized );
 
+    document->beginMacro(i18n("Set Layout")); // we call applyStyle() which creates undo commands too.
     QUndoCommand * cmd = new QUndoCommand( i18n( "Set Layout" ) );
     new KPrPageLayoutCommand( this, layout, cmd );
 
@@ -126,6 +127,7 @@
         }
     }
     document->addCommand( cmd );
+    document->endMacro();
 }
 
 void KPrPlaceholders::setLayout( KPrPageLayout * layout )
[prev in list] [next in list] [prev in thread] [next in thread] 

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