[prev in list] [next in list] [prev in thread] [next in thread]
List: kde-commits
Subject: koffice/kplato
From: Dag Andersen <danders () get2net ! dk>
Date: 2010-07-02 7:48:04
Message-ID: 20100702074804.613C7AC9D8 () svn ! kde ! org
[Download RAW message or body]
SVN commit 1145209 by danders:
Don't crash if opening a new view on an empty document.
M +1 -1 kptpart.cpp
--- trunk/koffice/kplato/kptpart.cpp #1145208:1145209
@@ -163,7 +163,7 @@
{
// syncronize view selector
View *view = dynamic_cast<View*>( views().value( 0 ) );
- if ( view ) {
+ if ( view && m_context ) {
QDomDocument doc = m_context->save( view );
m_context->setContent( doc.toString() );
}
[prev in list] [next in list] [prev in thread] [next in thread]
Configure |
About |
News |
Add a list |
Sponsored by KoreLogic