~ubuntu-branches/ubuntu/natty/koffice/natty

« back to all changes in this revision

Viewing changes to libs/main/KoDocument.cpp

  • Committer: Bazaar Package Importer
  • Author(s): Tarun Kumar Mall
  • Date: 2011-03-12 11:19:59 UTC
  • mfrom: (0.17.3 upstream)
  • Revision ID: james.westby@ubuntu.com-20110312111959-euzvruu7hcxasjuy
Tags: 1:2.3.3-0ubuntu1
* New upstream release (LP: #733227)
* Removed debian/kformula.install
* debian/control: commented lines regarding kformula, upstream
  recommends removing kformula atm.

Show diffs side-by-side

added added

removed removed

Lines of Context:
2479
2479
    return d->templateType;
2480
2480
}
2481
2481
 
2482
 
void KoDocument::deleteOpenPane()
 
2482
void KoDocument::deleteOpenPane(bool closing)
2483
2483
{
2484
2484
    if (d->startUpWidget) {
2485
2485
        d->startUpWidget->hide();
2486
2486
        d->startUpWidget->deleteLater();
2487
2487
 
2488
 
        shells().first()->factory()->container("mainToolBar",
2489
 
                                               shells().first())->show();
2490
 
        shells().first()->setRootDocument(this);
 
2488
        if (!closing) {
 
2489
            shells().first()->setRootDocument(this);
 
2490
            shells().first()->factory()->container("mainToolBar", shells().first())->show();
 
2491
        }
2491
2492
    } else {
2492
2493
        emit closeEmbedInitDialog();
2493
2494
    }