summaryrefslogtreecommitdiff
path: root/noncore
authorllornkcor <llornkcor>2002-07-10 15:20:43 (UTC)
committer llornkcor <llornkcor>2002-07-10 15:20:43 (UTC)
commite17d551a7c42a1d77805b4f1575928855e0e32ba (patch) (side-by-side diff)
tree58fe47dc0cefc26f17680a8410ec906a5f300f47 /noncore
parent7f3bc923c0ae1ecfc40215e461d31ad513ec6a94 (diff)
downloadopie-e17d551a7c42a1d77805b4f1575928855e0e32ba.zip
opie-e17d551a7c42a1d77805b4f1575928855e0e32ba.tar.gz
opie-e17d551a7c42a1d77805b4f1575928855e0e32ba.tar.bz2
fixed crash with delete check entry
Diffstat (limited to 'noncore') (more/less context) (show whitespace changes)
-rw-r--r--noncore/apps/checkbook/qcheckbook.cpp4
-rw-r--r--noncore/apps/checkbook/qcheckview.cpp0
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
@@ -42,37 +42,35 @@ QCheckBook::QCheckBook()
}
setToolBarsMovable( FALSE );
}
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" );
m_filename = filename;
nb3 = new QToolButton( pixmap, "Graph", QString::null, this, SLOT(newGraph()), bar, "new graph" );
QPixmap closeIcon = Resource::loadPixmap( "close" );
nb4 = new QToolButton( closeIcon, "Close", QString::null, this, SLOT(initMainMenus()), bar, "close graph" );
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