-rw-r--r-- | noncore/apps/checkbook/qcheckbook.cpp | 4 | ||||
-rw-r--r-- | noncore/apps/checkbook/qcheckview.cpp | 0 |
2 files changed, 1 insertions, 3 deletions
diff --git a/noncore/apps/checkbook/qcheckbook.cpp b/noncore/apps/checkbook/qcheckbook.cpp index 797127e..bb7a5ac 100644 --- a/noncore/apps/checkbook/qcheckbook.cpp +++ b/noncore/apps/checkbook/qcheckbook.cpp @@ -48,25 +48,23 @@ void QCheckBook::newCheck(const QString &filename) { if (filename.isEmpty() == false) { initCheck = true; if (m_view != 0) { + m_view=0; delete m_view; } m_view = new QCheckView(this, filename); m_view->hide(); connect(m_view, SIGNAL(reload(const QString &)), this, SLOT(newCheck(const QString &))); - if (initMM == true) { delete nb1; } - bar->clear(); - mbar = new QMenuBar(bar); mbar->setMargin(0); QPixmap newIcon = Resource::loadPixmap( "new" ); nb2 = new QToolButton( newIcon, "New", QString::null, m_view, SLOT(newClicked()), bar, "new item" ); QPixmap pixmap = Resource::loadPixmap( "pixmap" ); diff --git a/noncore/apps/checkbook/qcheckview.cpp b/noncore/apps/checkbook/qcheckview.cpp index 6f103e2..ddc3fa9 100644 --- a/noncore/apps/checkbook/qcheckview.cpp +++ b/noncore/apps/checkbook/qcheckview.cpp |