Changeset View
Changeset View
Standalone View
Standalone View
components/impl/SpreadsheetImpl.cpp
Context not available. | |||||
160 | 160 | | |||
---|---|---|---|---|---|
161 | bool SpreadsheetImpl::load(const QUrl& url) | 161 | bool SpreadsheetImpl::load(const QUrl& url) | ||
162 | { | 162 | { | ||
163 | if(d->part) { | 163 | delete d->part; | ||
164 | delete d->part; | 164 | delete d->document; | ||
165 | delete d->document; | | |||
166 | } | | |||
167 | 165 | | |||
168 | d->part = new Calligra::Sheets::Part{this}; | 166 | d->part = new Calligra::Sheets::Part{this}; | ||
169 | d->document = new Calligra::Sheets::Doc{d->part}; | 167 | d->document = new Calligra::Sheets::Doc{d->part}; | ||
Context not available. |