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) (unidiff)
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
@@ -48,25 +48,23 @@ void QCheckBook::newCheck(const QString &filename)
48{ 48{
49 if (filename.isEmpty() == false) 49 if (filename.isEmpty() == false)
50 { 50 {
51 initCheck = true; 51 initCheck = true;
52 if (m_view != 0) 52 if (m_view != 0)
53 { 53 {
54 m_view=0;
54 delete m_view; 55 delete m_view;
55 } 56 }
56 m_view = new QCheckView(this, filename); 57 m_view = new QCheckView(this, filename);
57 m_view->hide(); 58 m_view->hide();
58 connect(m_view, SIGNAL(reload(const QString &)), this, SLOT(newCheck(const QString &))); 59 connect(m_view, SIGNAL(reload(const QString &)), this, SLOT(newCheck(const QString &)));
59
60 if (initMM == true) 60 if (initMM == true)
61 { 61 {
62 delete nb1; 62 delete nb1;
63 } 63 }
64
65 bar->clear(); 64 bar->clear();
66
67 mbar = new QMenuBar(bar); 65 mbar = new QMenuBar(bar);
68 mbar->setMargin(0); 66 mbar->setMargin(0);
69 67
70 QPixmap newIcon = Resource::loadPixmap( "new" ); 68 QPixmap newIcon = Resource::loadPixmap( "new" );
71 nb2 = new QToolButton( newIcon, "New", QString::null, m_view, SLOT(newClicked()), bar, "new item" ); 69 nb2 = new QToolButton( newIcon, "New", QString::null, m_view, SLOT(newClicked()), bar, "new item" );
72 QPixmap pixmap = Resource::loadPixmap( "pixmap" ); 70 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