From 5f6144b48cac5cc058ee06461e865ce03cda00f1 Mon Sep 17 00:00:00 2001 From: zecke Date: Tue, 19 Mar 2002 19:52:28 +0000 Subject: fix the crash for harlekin --- diff --git a/libopie/tododb.cpp b/libopie/tododb.cpp index e440dfc..b1b35d0 100644 --- a/libopie/tododb.cpp +++ b/libopie/tododb.cpp @@ -119,6 +119,7 @@ public: qWarning("could not load" ); } delete root; + qWarning("returning" ); return m_todos; } }; @@ -128,7 +129,8 @@ public: ToDoDB::ToDoDB(const QString &fileName = QString::null, ToDoResource *res ){ m_fileName = fileName; if( fileName.isEmpty() && res == 0 ){ - m_fileName = Global::applicationFileName("todolist","todolist.xml");; + m_fileName = Global::applicationFileName("todolist","todolist.xml"); + res = new FileToDoResource(); //qWarning("%s", m_fileName.latin1() ); }else if(res == 0 ){ // let's create a ToDoResource for xml res = new FileToDoResource(); -- cgit v0.9.0.2